[mingw-gdk-pixbuf: 2/22] Initial import

epienbro epienbro at fedoraproject.org
Tue Mar 6 19:22:28 UTC 2012


commit 80bb477b31fc7a6913b7599fe0f20c4eba6e8c2e
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Fri Sep 17 18:37:48 2010 +0200

    Initial import

 .gitignore              |    1 +
 mingw32-gdk-pixbuf.spec |  148 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 150 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ad9ad0f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gdk-pixbuf-2.21.7.tar.bz2
diff --git a/mingw32-gdk-pixbuf.spec b/mingw32-gdk-pixbuf.spec
new file mode 100644
index 0000000..6be50a5
--- /dev/null
+++ b/mingw32-gdk-pixbuf.spec
@@ -0,0 +1,148 @@
+%global __strip %{_mingw32_strip}
+%global __objdump %{_mingw32_objdump}
+%global _use_internal_dependency_generator 0
+%global __find_requires %{_mingw32_findrequires}
+%global __find_provides %{_mingw32_findprovides}
+%define __debug_install_post %{_mingw32_debug_install_post}
+
+Name:           mingw32-gdk-pixbuf
+Version:        2.21.7
+Release:        1%{?dist}
+Summary:        MinGW Windows GDK Pixbuf library
+
+License:        LGPLv2+
+Group:          Development/Libraries
+URL:            http://www.gtk.org
+Source0:        http://download.gnome.org/sources/gdk-pixbuf/2.21/gdk-pixbuf-%{version}.tar.bz2
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# If you want to rebuild this, do:
+# wine /usr/i686-pc-mingw32/sys-root/mingw/bin/gdk-pixbuf-query-loaders.exe | sed s@'Z:/usr/i686-pc-mingw32/sys-root/mingw'@'..'@ > gdk-pixbuf.loaders
+Source1:        gdk-pixbuf.loaders
+
+# Some Fedora-MinGW-specific changes are required by mingw32-libjpeg 7
+Patch0:         mingw32-gtk2-libjpeg7-compatibility.patch
+
+BuildArch:      noarch
+
+BuildRequires:  mingw32-filesystem >= 49
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-binutils
+
+BuildRequires:  mingw32-glib2
+BuildRequires:  mingw32-jasper
+BuildRequires:  mingw32-libjpeg
+BuildRequires:  mingw32-libpng
+BuildRequires:  mingw32-libtiff
+
+BuildRequires:  pkgconfig
+
+# Native one for msgfmt
+BuildRequires:  gettext
+# Native one for glib-genmarsjal
+BuildRequires:  glib2-devel
+# Native one for gtk-update-icon-cache
+BuildRequires:  gtk2
+# Native one for gdk-pixbuf-csource
+BuildRequires:  gtk2-devel
+
+Requires:       pkgconfig
+
+
+%description
+MinGW Windows GDK Pixbuf library.
+
+
+%{?_mingw32_debug_package}
+
+
+%prep
+%setup -q -n gdk-pixbuf-%{version}
+
+%patch0 -p0
+
+
+%build
+# Need to run the correct version of glib-mkenums.
+PATH=%{_mingw32_bindir}:$PATH
+
+%{_mingw32_configure} --enable-gdiplus --with-libjasper
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make DESTDIR=$RPM_BUILD_ROOT install
+
+# The .def files are only used while compiling the libraries themselves
+# (they contain a list of functions which need to be exported by the linker)
+# so they serve no purpose for other libraries and applications
+rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/gdk_pixbuf-2.0.def
+
+# The .dll.a files are import libraries, but as the regular .dll's are
+# only dlopen'ed by GTK they provide no additional value so they can be dropped
+rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.dll.a
+
+# The same also applies to the .la files for the individual loaders
+rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la
+
+# The gtk-doc documentation and man pages can also be dropped as they're
+# already provided by the native package
+rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc
+rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
+
+# Install the gdk-pixbuf.loaders file
+mkdir -p $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
+install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
+
+%find_lang %{name} --all-name
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc COPYING
+%{_mingw32_bindir}/gdk-pixbuf-csource.exe
+%{_mingw32_bindir}/gdk-pixbuf-query-loaders.exe
+%{_mingw32_bindir}/libgdk_pixbuf-2.0-0.dll
+%dir %{_mingw32_libdir}/gdk-pixbuf-2.0
+%dir %{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0
+%dir %{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-bmp.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-emf.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-gif.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-ico.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-jpeg.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-tiff.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-gdip-wmf.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pcx.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ras.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-wbmp.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.dll
+%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.dll
+%{_mingw32_libdir}/libgdk_pixbuf-2.0.dll.a
+%{_mingw32_libdir}/libgdk_pixbuf-2.0.la
+%{_mingw32_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
+%{_mingw32_includedir}/gdk-pixbuf-2.0/
+%{_mingw32_sysconfdir}/gtk-2.0/
+
+
+%changelog
+* Sun Sep 12 2010 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.21.7-1
+- Initial release (split off from the mingw32-gtk2 package)
+- Dropped the -static subpackage as it provides no added value
+- Dropped all the .dll.a and .la files from the loaders as they provide no added value
+- Dropped the libpng 1.4 hack as upstream has provided a proper fix
+
diff --git a/sources b/sources
index e69de29..49614d8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+341ef6c8870fddb411f8bb24b9fb638b  gdk-pixbuf-2.21.7.tar.bz2


More information about the scm-commits mailing list