#
%define abiver 2.10.0
#
-Summary: An image loading library
-Summary(pl.UTF-8): Biblioteka ładująca obrazki
+Summary: An image loading and scaling library
+Summary(pl.UTF-8): Biblioteka ładująca i skalująca obrazki
Name: gdk-pixbuf2
-Version: 2.21.7
+Version: 2.23.5
Release: 1
-License: LGPL v2
+License: LGPL v2+
Group: X11/Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.21/gdk-pixbuf-%{version}.tar.bz2
-# Source0-md5: 341ef6c8870fddb411f8bb24b9fb638b
-URL: http://www.gtk.org/
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.23/gdk-pixbuf-%{version}.tar.xz
+# Source0-md5: 066e30277cadc225a7cef4c258da830b
+URL: http://developer.gnome.org/gdk-pixbuf/
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1:1.10
BuildRequires: gettext-devel >= 0.17
-BuildRequires: glib2-devel >= 1:2.25.9
-BuildRequires: gobject-introspection-devel >= 0.6.14
+BuildRequires: glib2-devel >= 1:2.28.0
+BuildRequires: gobject-introspection-devel >= 0.10.0
BuildRequires: gtk-doc >= 1.11
BuildRequires: jasper-devel
BuildRequires: libjpeg-devel
BuildRequires: libxslt-progs
BuildRequires: perl-devel
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.527
+BuildRequires: tar >= 1:1.22
BuildRequires: xorg-lib-libX11-devel
-Requires: glib2 >= 1:2.25.9
+BuildRequires: xz
+Requires: glib2 >= 1:2.28.0
+Suggests: librsvg >= 2.31
Conflicts: gtk+2 < 2:2.21.3-1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%endif
%description
-gdk-pixbuf is an image loading library that can be extended by
-loadable modules for new image formats.
+gdk-pixbuf is an image loading and scaling library that can be
+extended by loadable modules for new image formats.
It is used by toolkits such as GTK+ or Clutter.
%description -l pl.UTF-8
-gdk-pixbuf to biblioteka ładująca obrazki, której funkcjonalność może
-być rozszerzana o obsługę nowych formatów poprzez ładowane moduły.
+gdk-pixbuf to biblioteka ładująca i skalująca obrazki, której
+funkcjonalność może być rozszerzana o obsługę nowych formatów poprzez
+ładowane moduły.
Używana jest przez biblioteki takie jak GTK+ czy Clutter.
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdk-pixbuf
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: glib2-devel >= 1:2.25.9
+Requires: glib2-devel >= 1:2.28.0
Conflicts: gtk+2-devel < 2:2.21.3-1
%description devel
%prep
%setup -q -n gdk-pixbuf-%{version}
sed -i s#^io## po/LINGUAS
-rm po/io.po
+%{__rm} po/io.po
%build
+%{__gettextize}
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%if "%{_lib}" != "lib"
# We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR.
# (needed when multilib is used)
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders{,%{pqext}}
+mv -f $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders{,%{pqext}}
%endif
touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache
-%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.la \
+ $RPM_BUILD_ROOT%{_libdir}/libgdk_pixbuf{,_xlib}-2.0.la
-%{?!with_apidocs:%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
+%{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}}
-%find_lang gdk-pixbuf
+%find_lang gdk-pixbuf %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
-
umask 022
-%{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
-exit 0
+%{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
%postun
/sbin/ldconfig
-
if [ "$1" != "0" ]; then
- umask 022
- %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
+ umask 022
+ %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || :
fi
-exit 0
-%files -f gdk-pixbuf.lang
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS NEWS
%attr(755,root,root) %{_bindir}/gdk-pixbuf-query-loaders%{pqext}
%dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}
%ghost %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache
%dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-ani.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-bmp.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-gif.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-icns.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-ico.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-jasper.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-jpeg.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-pcx.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-png.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-pnm.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-qtif.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-ras.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-tga.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-tiff.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-wbmp.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-xbm.so
-%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-xpm.so
-#%%{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib
+%attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-*.so
+%{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib
%{_mandir}/man1/gdk-pixbuf-query-loaders.1*
%files devel
%attr(755,root,root) %{_bindir}/gdk-pixbuf-csource
%attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so
%attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so
-%{_libdir}/libgdk_pixbuf-2.0.la
-%{_libdir}/libgdk_pixbuf_xlib-2.0.la
-#%{_datadir}/gir-1.0/GdkPixbuf-2.0.gir
+%{_datadir}/gir-1.0/GdkPixbuf-2.0.gir
%{_mandir}/man1/gdk-pixbuf-csource.1*
%{_includedir}/gdk-pixbuf-2.0
%{_pkgconfigdir}/gdk-pixbuf-2.0.pc