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.
This commit is contained in:
Richard Hughes 2015-03-20 14:05:05 +00:00
parent 821c786032
commit b8a4b68c25

View File

@ -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 <rhughes@redhat.com> - 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 <kalevlember@gmail.com> - 2.31.3-1
- Update to 2.31.3
- Use the %%license macro for the COPYING file