From 8f048d7d79423a76cfe75dfddd84cbff44164179 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 27 2019 12:06:38 +0000 Subject: Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- diff --git a/libreport.spec b/libreport.spec index 503714f..adbd375 100644 --- a/libreport.spec +++ b/libreport.spec @@ -477,20 +477,16 @@ make check|| { exit 1 } -%if 0%{?fedora} > 27 || 0%{?rhel} > 7 -# ldconfig and gtk-update-icon-cache is not needed -%else +%ldconfig_scriptlets +%ldconfig_scriptlets web +%if 0%{?rhel} && 0%{?rhel} <= 7 %post gtk -/sbin/ldconfig +%{?ldconfig} # update icon cache touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - %postun gtk -/sbin/ldconfig +%{?ldconfig} if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : @@ -498,12 +494,6 @@ fi %posttrans gtk gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - - -%post web -p /sbin/ldconfig - - -%postun web -p /sbin/ldconfig %endif %files -f %{name}.lang