From cacb059db6b659b67be55385a7de8de472ff30ce Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 27 2019 12:03:56 +0000 Subject: Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- diff --git a/httrack.spec b/httrack.spec index 993e6b3..846277b 100644 --- a/httrack.spec +++ b/httrack.spec @@ -111,23 +111,7 @@ if st2 and st2.type == "link" then os.remove(path2) end -%post -/sbin/ldconfig -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -/sbin/ldconfig -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans -p -require "os" - -local path1 = "%{_datadir}/httrack/html" -os.execute("gtk-update-icon-cache".." %{_datadir}/icons/hicolor ".."&>/dev/null ".."|| "..":") -os.execute("rm".." -fr".." "..path1..".rpmmoved*") +%ldconfig_scriptlets %files %{!?_licensedir:%global license %doc}