]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - gdk-pixbuf2/gdk-pixbuf2.nm
gdk-pixbuf2: Update to 2.30.5.
[people/ms/ipfire-3.x.git] / gdk-pixbuf2 / gdk-pixbuf2.nm
index 7fa3659ad2dceb78dadd07fc594a22acf8b2199d..25a7b231e33327b0797ea30c9e73a3e07203192f 100644 (file)
@@ -4,8 +4,9 @@
 ###############################################################################
 
 name       = gdk-pixbuf2
-version    = 2.24.0
-major_ver  = 2.24
+version    = %{ver_major}.%{ver_minor}
+ver_major  = 2.30
+ver_minor  = 5
 release    = 1
 
 groups     = System/Libraries
@@ -20,23 +21,43 @@ end
 
 thisapp    = gdk-pixbuf-%{version}
 
-source_dl  = http://download.gnome.org/sources/gdk-pixbuf/%{major_ver}/
+source_dl  = http://download.gnome.org/sources/gdk-pixbuf/%{ver_major}/
 sources    = %{thisapp}.tar.xz
 
 build
        requires
-               glib2-devel
+               glib2-devel >= 2.37.6
+               gobject-introspection-devel >= 0.9.3
                libpng-devel
                libjpeg-devel
                libtiff-devel
+               libX11-devel
        end
 
        configure_options += \
-               --disable-rpath
+               --with-x11 \
+               --with-included-loaders=png
+
+       make_install_targets += RUN_QUERY_LOADER_TEST=false
+
+       install_cmds
+               touch %{BUILDROOT}%{libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+       end
 end
 
 packages
        package %{name}
+               datafiles
+                       %{libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+               end
+
+               script postin
+                       gdk-pixbuf-query-loaders --update-cache || :
+               end
+
+               script postup
+                       gdk-pixbuf-query-loaders --update-cache || :
+               end
        end
 
        package %{name}-devel