X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gdk-pixbuf2.spec;h=be702a8854af77941c0fdca93ea43fa7aa2cb873;hb=962407530f5e95c94840c2e26679273a9607f938;hp=ec8fe9d111f0417ebe44337430eff839743cbfaa;hpb=3023a791ae00ef53a9429dd8575d27490793c0be;p=packages%2Fgdk-pixbuf2.git diff --git a/gdk-pixbuf2.spec b/gdk-pixbuf2.spec index ec8fe9d..be702a8 100644 --- a/gdk-pixbuf2.spec +++ b/gdk-pixbuf2.spec @@ -1,3 +1,4 @@ +# TODO: consider -x11 subpackages # # Conditional build: %bcond_without apidocs # do not build and package API docs @@ -7,17 +8,18 @@ Summary: An image loading and scaling library Summary(pl.UTF-8): Biblioteka ładująca i skalująca obrazki Name: gdk-pixbuf2 -Version: 2.23.3 +Version: 2.30.2 Release: 1 License: LGPL v2+ Group: X11/Libraries -Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.23/gdk-pixbuf-%{version}.tar.bz2 -# Source0-md5: 5d50c5311b4ce460d33983938d92109e -URL: http://www.gtk.org/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.30/gdk-pixbuf-%{version}.tar.xz +# Source0-md5: 792aa0d67e14faa89dec0d5248d32812 +Patch0: %{name}-png-nodep.patch +URL: http://developer.gnome.org/gdk-pixbuf/ BuildRequires: autoconf >= 2.63 -BuildRequires: automake >= 1:1.10 +BuildRequires: automake >= 1:1.11 BuildRequires: gettext-devel >= 0.17 -BuildRequires: glib2-devel >= 1:2.28.0 +BuildRequires: glib2-devel >= 1:2.37.2 BuildRequires: gobject-introspection-devel >= 0.10.0 BuildRequires: gtk-doc >= 1.11 BuildRequires: jasper-devel @@ -29,8 +31,10 @@ 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.28.0 +BuildRequires: xz +Requires: glib2 >= 1:2.37.2 Suggests: librsvg >= 2.31 Conflicts: gtk+2 < 2:2.21.3-1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -60,7 +64,7 @@ Summary: Header files for gdk-pixbuf library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdk-pixbuf Group: X11/Development/Libraries Requires: %{name} = %{version}-%{release} -Requires: glib2-devel >= 1:2.28.0 +Requires: glib2-devel >= 1:2.37.2 Conflicts: gtk+2-devel < 2:2.21.3-1 %description devel @@ -83,8 +87,7 @@ Dokumentacja API biblioteki gdk-pixbuf. %prep %setup -q -n gdk-pixbuf-%{version} -sed -i s#^io## po/LINGUAS -%{__rm} po/io.po +%patch0 -p1 %build %{__gettextize} @@ -94,10 +97,12 @@ sed -i s#^io## po/LINGUAS %{__autoheader} %{__automake} %configure \ + --disable-silent-rules \ --enable-man \ %{__enable_disable apidocs gtk-doc} \ --with-html-dir=%{_gtkdocdir} \ - --with-libjasper + --with-libjasper \ + --with-x11 %{__make} %install @@ -119,6 +124,10 @@ touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache %{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}} +%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@ije,sr@ijekavian} +# not supported by glibc +%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/io + %find_lang gdk-pixbuf %{name}.lang %clean @@ -133,6 +142,8 @@ umask 022 /sbin/ldconfig if [ "$1" != "0" ]; then umask 022 + # the $1 check does not match for multilib installs, check also that the binary still exists + [ ! -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ] || \ %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || : fi @@ -155,6 +166,7 @@ fi %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/gdk-pixbuf-csource +%attr(755,root,root) %{_bindir}/gdk-pixbuf-pixdata %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so %{_datadir}/gir-1.0/GdkPixbuf-2.0.gir