From a4e6cb7aba364ddabae87fd03df7ff3874ee9466 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 5 Jan 2018 23:37:11 +0100 Subject: [PATCH] Remove obsolete scriptlets Signed-off-by: Igor Gnatenko --- gcr.spec | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) 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