]> git.pld-linux.org Git - packages/gdk-pixbuf2.git/blobdiff - gdk-pixbuf2.spec
- updated to 2.31.2
[packages/gdk-pixbuf2.git] / gdk-pixbuf2.spec
index bf4043b9f74b6211c36e84e931b1c3e4347c021a..f9142ed5ba92d23045558dd7b222d90880dcfe30 100644 (file)
@@ -1,3 +1,4 @@
+# TODO: consider -x11 subpackages
 #
 # Conditional build:
 %bcond_without apidocs         # do not build and package API docs
@@ -7,21 +8,20 @@
 Summary:       An image loading and scaling library
 Summary(pl.UTF-8):     Biblioteka ładująca i skalująca obrazki
 Name:          gdk-pixbuf2
-Version:       2.22.1
-Release:       2
+Version:       2.31.2
+Release:       1
 License:       LGPL v2+
 Group:         X11/Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.22/gdk-pixbuf-%{version}.tar.bz2
-# Source0-md5: 716c4593ead3f9c8cca63b8b1907a561
-Patch0:                gobject-introspection.patch
-Patch1:                %{name}-nopngdep.patch
-URL:           http://www.gtk.org/
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.31/gdk-pixbuf-%{version}.tar.xz
+# Source0-md5: 6be6bbc4f356d4b79ab4226860ab8523
+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.25.9
-BuildRequires: gobject-introspection-devel >= 0.9.5
-BuildRequires: gtk-doc >= 1.11
+BuildRequires: glib2-devel >= 1:2.37.6
+BuildRequires: gobject-introspection-devel >= 0.10.0
+BuildRequires: gtk-doc >= 1.20
 BuildRequires: jasper-devel
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
@@ -31,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.25.9
+BuildRequires: xz
+Requires:      glib2 >= 1:2.37.6
 Suggests:      librsvg >= 2.31
 Conflicts:     gtk+2 < 2:2.21.3-1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -62,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.25.9
+Requires:      glib2-devel >= 1:2.37.6
 Conflicts:     gtk+2-devel < 2:2.21.3-1
 
 %description devel
@@ -86,9 +88,6 @@ Dokumentacja API biblioteki gdk-pixbuf.
 %prep
 %setup -q -n gdk-pixbuf-%{version}
 %patch0 -p1
-%patch1 -p1
-sed -i s#^io## po/LINGUAS
-%{__rm} po/io.po
 
 %build
 %{__gettextize}
@@ -98,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
@@ -123,7 +124,11 @@ touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache
 
 %{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}}
 
-%find_lang gdk-pixbuf %{name}
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian}
+# not supported by glibc
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io
+
+%find_lang gdk-pixbuf %{name}.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -137,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
 
@@ -159,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
This page took 0.047018 seconds and 4 git commands to generate.