From b8a4b68c2535c60984277d3f196e6db9dbf8b9e0 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 20 2015 14:09:35 +0000 Subject: Split out the modules as a subpackage This allows us to depend on the core library in the cloud image and not drag every image loader known to man. --- diff --git a/gdk-pixbuf2.spec b/gdk-pixbuf2.spec index 2d92215..e82ff4d 100644 --- a/gdk-pixbuf2.spec +++ b/gdk-pixbuf2.spec @@ -2,7 +2,7 @@ Name: gdk-pixbuf2 Version: 2.31.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An image loading library Group: System Environment/Libraries @@ -38,6 +38,14 @@ 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 modules +Summary: Additional image modules for gdk-pixbuf +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description modules +This package contains the additional modules that are needed to load various +image formats such as ICO and . + %package devel Summary: Development files for gdk-pixbuf Group: Development/Libraries @@ -101,6 +109,14 @@ if [ $1 -gt 0 ]; then gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || : fi +%post modules +gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || : + +%postun modules +if [ $1 -gt 0 ]; then + gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || : +fi + %files -f gdk-pixbuf.lang %license COPYING %doc AUTHORS NEWS @@ -110,11 +126,13 @@ fi %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 modules +%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so + %files devel %{_includedir}/gdk-pixbuf-2.0 %{_libdir}/libgdk_pixbuf-2.0.so @@ -133,6 +151,10 @@ fi %changelog +* Fri Mar 20 2015 Richard Hughes - 2.31.3-2 +- Split out the modules as a subpackage to allows us to depend on the core + library on the cloud image and not drag every image loader known to man. + * Sat Mar 07 2015 Kalev Lember - 2.31.3-1 - Update to 2.31.3 - Use the %%license macro for the COPYING file