diff --git a/.cvsignore b/.cvsignore index e69de29..cad8013 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gdk-pixbuf-2.21.4.tar.bz2 diff --git a/gdk-pixbuf2.spec b/gdk-pixbuf2.spec new file mode 100644 index 0000000..641babb --- /dev/null +++ b/gdk-pixbuf2.spec @@ -0,0 +1,118 @@ +Name: gdk-pixbuf2 +Version: 2.21.4 +Release: 2%{?dist} +Summary: An image loading library + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.gt.org +Source0: http://download.gnome.org/sources/gdk-pixbuf/2.21/gdk-pixbuf-%{version}.tar.bz2 + +BuildRequires: glib2-devel +BuildRequires: libpng-devel +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: jasper-devel +BuildRequires: libX11-devel +BuildRequires: gobject-introspection-devel + +# gdk-pixbuf was included in gtk2 until 2.21.2 +Conflicts: gtk2 <= 2.21.2 + +%description +gdk-pixbuf is an image loading library that can be extended by loadable +modules for new image formats. It is used by toolkits such as GTK+ or +clutter. + +%package devel +Summary: Development files for gdk-pixbuf +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: glib2-devel + +# gdk-pixbuf was included in gtk2 until 2.21.2 +Conflicts: gtk2-devel <= 2.21.2 + +%description devel +This package contains the libraries and header files that are needed +for writing applications that are using gdk-pixbuf. + + +%prep +%setup -q + + +%build +%configure --enable-introspection \ + --disable-gtk-doc \ + --disable-rebuilds \ + --with-libjasper \ + --with-included-loaders=png + +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT \ + RUN_QUERY_LOADER_TEST=false + +# Remove unpackaged files +rm $RPM_BUILD_ROOT%{_libdir}/*.la +rm $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la + +touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache + +(cd $RPM_BUILD_ROOT%{_bindir} + mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-%{__isa_bits} +) + +%find_lang gdk-pixbuf + +%post +/sbin/ldconfig +gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache + +%postun +/sbin/ldconfig +if [ $1 -gt 0 ]; then + gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache +fi + +%files -f gdk-pixbuf.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS +%{_libdir}/libgdk_pixbuf-2.0.so.* +%{_libdir}/libgdk_pixbuf_xlib-2.0.so.* +%{_libdir}/girepository-1.0 +%dir %{_libdir}/gdk-pixbuf-2.0 +%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0 +%dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders +%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so +%ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache +%{_bindir}/gdk-pixbuf-query-loaders-%{__isa_bits} +%{_mandir}/man1/gdk-pixbuf-query-loaders.1* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/gdk-pixbuf-2.0 +%{_libdir}/libgdk_pixbuf-2.0.so +%{_libdir}/libgdk_pixbuf_xlib-2.0.so +%{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc +%{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc +%{_bindir}/gdk-pixbuf-csource +%{_datadir}/gir-1.0 +%{_datadir}/gtk-doc/html/* +%{_mandir}/man1/gdk-pixbuf-csource.1* + + +%changelog +* Sat Jun 26 2010 Matthias Clasen 2.21.4-2 +- Rename to gdk-pixbuf2 to avoid conflict with the + existing gdk-pixbuf package + +* Sat Jun 26 2010 Matthias Clasen 2.21.4-1 +- Update to 2.21.4 +- Incorporate package review feedback + +* Sat Jun 26 2010 Matthias Clasen 2.21.3-1 +- Initial packaging diff --git a/import.log b/import.log new file mode 100644 index 0000000..4c6d078 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +gdk-pixbuf2-2_21_4-2_fc14:HEAD:gdk-pixbuf2-2.21.4-2.fc14.src.rpm:1277731133 diff --git a/sources b/sources index e69de29..1ec64fa 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +97504141bd148790d3b1227bd904f46f gdk-pixbuf-2.21.4.tar.bz2