From af900336e6385b45e4880038c7597a0110b289ab Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Add fontconfig, freetype, libpng, pixman and cairo --- cairo/mingw-cairo.spec | 69 +++++++++++++++++++++++++++++++++++++ fontconfig/mingw-fontconfig.spec | 73 ++++++++++++++++++++++++++++++++++++++++ freetype/mingw-freetype.spec | 56 ++++++++++++++++++++++++++++++ libpng/mingw-libpng.spec | 64 +++++++++++++++++++++++++++++++++++ pixman/mingw-pixman.spec | 54 +++++++++++++++++++++++++++++ 5 files changed, 316 insertions(+) create mode 100644 cairo/mingw-cairo.spec create mode 100644 fontconfig/mingw-fontconfig.spec create mode 100644 freetype/mingw-freetype.spec create mode 100644 libpng/mingw-libpng.spec create mode 100644 pixman/mingw-pixman.spec diff --git a/cairo/mingw-cairo.spec b/cairo/mingw-cairo.spec new file mode 100644 index 0000000..924444b --- /dev/null +++ b/cairo/mingw-cairo.spec @@ -0,0 +1,69 @@ +%include /usr/lib/rpm/mingw-defs + +Name: mingw-cairo +Version: 1.7.4 +Release: 1%{?dist} +Summary: MinGW Windows Cairo library + +License: LGPLv2 or MPLv1.1 +URL: http://cairographics.org +Source0: http://cairographics.org/releases/cairo-%{version}.tar.gz +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw-filesystem >= 19 +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils +BuildRequires: mingw-libxml2 +BuildRequires: mingw-pixman +BuildRequires: mingw-freetype +BuildRequires: mingw-libpng +BuildRequires: mingw-fontconfig + +%description +MinGW Windows Cairo library. + + +%prep +%setup -q -n cairo-%{version} + +%build +PKG_CONFIG_PATH=%{_mingw_libdir}/pkgconfig \ +%{_mingw_configure} --disable-xlib --disable-xcb --enable-win32 --enable-png --enable-freetype +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw_bindir}/libcairo-2.dll +%{_mingw_includedir}/cairo/ +%{_mingw_libdir}/libcairo.a +%{_mingw_libdir}/libcairo.dll.a +%{_mingw_libdir}/libcairo.la +%{_mingw_libdir}/pkgconfig/cairo-ft.pc +%{_mingw_libdir}/pkgconfig/cairo-pdf.pc +%{_mingw_libdir}/pkgconfig/cairo-png.pc +%{_mingw_libdir}/pkgconfig/cairo-ps.pc +%{_mingw_libdir}/pkgconfig/cairo-svg.pc +%{_mingw_libdir}/pkgconfig/cairo-win32-font.pc +%{_mingw_libdir}/pkgconfig/cairo-win32.pc +%{_mingw_libdir}/pkgconfig/cairo.pc +%{_mingw_datadir}/gtk-doc/html/cairo/ + + +%changelog +* Tue Sep 9 2008 Daniel P. Berrange - 1.7.4-1 +- Initial RPM release diff --git a/fontconfig/mingw-fontconfig.spec b/fontconfig/mingw-fontconfig.spec new file mode 100644 index 0000000..dad57ca --- /dev/null +++ b/fontconfig/mingw-fontconfig.spec @@ -0,0 +1,73 @@ +%include /usr/lib/rpm/mingw-defs + +Name: mingw-fontconfig +Version: 2.6.0 +Release: 1%{?dist} +Summary: MinGW Windows Fontconfig library + +License: MIT +URL: http://fontconfig.org +Source0: http://fontconfig.org/release/fontconfig-%{version}.tar.gz +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw-filesystem >= 19 +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils + +%description +MinGW Windows Fontconfig library. + + +%prep +%setup -q -n fontconfig-%{version} + +%build +PKG_CONFIG_PATH=%{_mingw_libdir}/pkgconfig \ +#{_mingw_configure} --with-arch=i686 + CC="%{_mingw_cc}" \ + CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" \ + ./configure \ + --build=%_build --host=%{_mingw_host} --target=%{_mingw_target} \ + --prefix=%{_mingw_prefix} --with-arch=i686 +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw_bindir}/fc-cache.exe +%{_mingw_bindir}/fc-cat.exe +%{_mingw_bindir}/fc-list.exe +%{_mingw_bindir}/fc-match.exe +%{_mingw_bindir}/libfontconfig-1.dll +%{_mingw_libdir}/fontconfig.def +%{_mingw_libdir}/libfontconfig.a +%{_mingw_libdir}/libfontconfig.dll.a +%{_mingw_libdir}/libfontconfig.la +%{_mingw_libdir}/pkgconfig/fontconfig.pc +%{_mingw_includedir}/fontconfig/ +%{_mingw_sysconfdir}/fonts/ +%{_mingw_mandir}/man1/fc-cache.1* +%{_mingw_mandir}/man1/fc-cat.1* +%{_mingw_mandir}/man1/fc-list.1* +%{_mingw_mandir}/man1/fc-match.1* +%{_mingw_mandir}/man3/Fc*.3* +%{_mingw_mandir}/man5/fonts-conf.5* +%{_mingw_datadir}/doc/fontconfig + +%changelog +* Tue Sep 9 2008 Daniel P. Berrange - 2.18.0-1 +- Initial RPM release diff --git a/freetype/mingw-freetype.spec b/freetype/mingw-freetype.spec new file mode 100644 index 0000000..8936c63 --- /dev/null +++ b/freetype/mingw-freetype.spec @@ -0,0 +1,56 @@ +%include /usr/lib/rpm/mingw-defs + +Name: mingw-freetype +Version: 2.3.7 +Release: 1%{?dist} +Summary: MinGW Windows Freetype library + +License: FTL or GPLv2+ +URL: http://www.freetype.org +Source: freetype-%{version}.tar.bz2 +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw-filesystem >= 19 +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils +BuildRequires: mingw-zlib + +%description +MinGW Windows Freetype library. + + +%prep +%setup -q -n freetype-%{version} + +%build +%{_mingw_configure} +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw_bindir}/freetype-config +%{_mingw_bindir}/libfreetype-6.dll +%{_mingw_includedir}/freetype2 +%{_mingw_includedir}/ft2build.h +%{_mingw_libdir}/libfreetype.a +%{_mingw_libdir}/libfreetype.dll.a +%{_mingw_libdir}/libfreetype.la +%{_mingw_libdir}/pkgconfig/freetype2.pc +%{_mingw_datadir}/aclocal/freetype2.m4 + +%changelog +* Tue Sep 9 2008 Daniel P. Berrange - 2.3.7-1 +- Initial RPM release diff --git a/libpng/mingw-libpng.spec b/libpng/mingw-libpng.spec new file mode 100644 index 0000000..528e465 --- /dev/null +++ b/libpng/mingw-libpng.spec @@ -0,0 +1,64 @@ +%include /usr/lib/rpm/mingw-defs + +Name: mingw-libpng +Version: 1.2.31 +Release: 1%{?dist} +Summary: MinGW Windows Libpng library + +License: zlib +URL: http://www.libpng.org/pub/png/ +Source0: ftp://ftp.simplesystems.org/pub/png/src/libpng-%{version}.tar.bz2 +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw-filesystem >= 19 +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils + +%description +MinGW Windows Libpng library. + + +%prep +%setup -q -n libpng-%{version} + +%build +%{_mingw_configure} +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw_bindir}/libpng-3.dll +%{_mingw_bindir}/libpng-config +%{_mingw_bindir}/libpng12-0.dll +%{_mingw_bindir}/libpng12-config +%{_mingw_includedir}/libpng12 +%{_mingw_includedir}/png.h +%{_mingw_includedir}/pngconf.h +%{_mingw_libdir}/libpng.a +%{_mingw_libdir}/libpng.dll.a +%{_mingw_libdir}/libpng.la +%{_mingw_libdir}/libpng12.a +%{_mingw_libdir}/libpng12.dll.a +%{_mingw_libdir}/libpng12.la +%{_mingw_libdir}/pkgconfig/libpng.pc +%{_mingw_libdir}/pkgconfig/libpng12.pc +%{_mingw_mandir}/man3/libpng.3* +%{_mingw_mandir}/man3/libpngpf.3* +%{_mingw_mandir}/man5/png.5* + +%changelog +* Tue Sep 9 2008 Daniel P. Berrange - 2.18.0-1 +- Initial RPM release diff --git a/pixman/mingw-pixman.spec b/pixman/mingw-pixman.spec new file mode 100644 index 0000000..c358180 --- /dev/null +++ b/pixman/mingw-pixman.spec @@ -0,0 +1,54 @@ +%include /usr/lib/rpm/mingw-defs + +Name: mingw-pixman +Version: 0.11.10 +Release: 1%{?dist} +Summary: MinGW Windows Pixman library + +License: MIT +URL: http://xorg.freedesktop.org +Source0: http://xorg.freedesktop.org/archive/individual/lib/pixman-%{version}.tar.gz +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw-filesystem >= 19 +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils + +%description +MinGW Windows Pixman library. + + +%prep +%setup -q -n pixman-%{version} + +%build +# Uses GTK for its testsuite, so disable this otherwise +# we have a chicken & egg problem on mingw +%{_mingw_configure} --disable-gtk +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw_bindir}/libpixman-1-0.dll +%{_mingw_includedir}/pixman-1 +%{_mingw_libdir}/libpixman-1.a +%{_mingw_libdir}/libpixman-1.dll.a +%{_mingw_libdir}/libpixman-1.la +%{_mingw_libdir}/pkgconfig/pixman-1.pc + +%changelog +* Tue Sep 9 2008 Daniel P. Berrange - 2.18.0-1 +- Initial RPM release -- 1.8.3.1