From 6755798d127f61c66fbf326c8f5edf900acf5d0b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 14 Aug 2015 11:55:58 -0400 Subject: [PATCH] Add file triggers --- glib2.spec | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/glib2.spec b/glib2.spec index c60c7e1..43ebbba 100644 --- a/glib2.spec +++ b/glib2.spec @@ -3,7 +3,7 @@ Summary: A library of handy utility functions Name: glib2 Version: 2.45.4 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gtk.org @@ -126,16 +126,21 @@ chmod 644 $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/* %find_lang glib20 -%post -/sbin/ldconfig +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%transfiletriggerin -- %{_libdir}/gio/modules gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules - -%postun -/sbin/ldconfig -[ ! -x %{_bindir}/gio-querymodules-%{__isa_bits} ] || \ +%transfiletriggerpostun -- %{_libdir}/gio/modules gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules +%transfiletriggerin -- %{_datadir}/glib-2.0/schemas +glib-compile-schemas %{_datadir}/glib-2.0/schemas + +%transfiletriggerpostun -- %{_datadir}/glib-2.0/schemas +glib-compile-schemas %{_datadir}/glib-2.0/schemas %files -f glib20.lang %{!?_licensedir:%global license %%doc} @@ -218,6 +223,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules %{_datadir}/installed-tests %changelog +* Fri Aug 14 2015 Matthias Clasen - 2.45.4-2 +- Add file triggers for gio modules and gsettings schemas + * Tue Jul 21 2015 David King - 2.45.4-1 - Update to 2.45.4