diff --git a/gdk-pixbuf2.spec b/gdk-pixbuf2.spec index 53e301b..02c2ca1 100644 --- a/gdk-pixbuf2.spec +++ b/gdk-pixbuf2.spec @@ -2,7 +2,7 @@ Name: gdk-pixbuf2 Version: 2.31.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An image loading library Group: System Environment/Libraries @@ -33,6 +33,9 @@ Requires: shared-mime-info # gdk-pixbuf was included in gtk2 until 2.21.2 Conflicts: gtk2 <= 2.21.2 +# We need rpm with file triggers support +Conflicts: rpm < 4.12.90 + %description 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 @@ -118,26 +121,20 @@ touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache %post /sbin/ldconfig -gdk-pixbuf-query-loaders-%{__isa_bits} --update-cache || : %postun /sbin/ldconfig -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 %post xlib -p /sbin/ldconfig %postun xlib -p /sbin/ldconfig +%transfiletriggerin -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders +gdk-pixbuf-query-loaders-%{_isa_bits} --update-cache + +%transfiletriggerpostun -- %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders +gdk-pixbuf-query-loaders-%{_isa_bits} --update-cache + %files -f gdk-pixbuf.lang %license COPYING %doc AUTHORS NEWS @@ -178,6 +175,9 @@ fi %changelog +* Wed Aug 5 2015 Matthias Clasen - 2.31.5-2 +- Add file triggers + * Mon Jul 20 2015 David King - 2.31.5-1 - Update to 2.31.5 - Use pkgconfig for some BuildRequires