diff --git a/gcr.spec b/gcr.spec index 822e963..77040e8 100644 --- a/gcr.spec +++ b/gcr.spec @@ -71,28 +71,8 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/lib*.so.* chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gcr-viewer chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/gcr-prompter -%post -/sbin/ldconfig -/usr/bin/update-desktop-database &> /dev/null || : -/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || : - - -%postun -/sbin/ldconfig -/usr/bin/update-desktop-database &> /dev/null || : -if [ $1 -eq 0 ] ; then - /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null - /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || : -fi - - -%posttrans -/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : -/usr/bin/update-mime-database -n %{_datadir}/mime &> /dev/null || : - +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %files -f %{name}.lang %doc README NEWS