Remove obsolete scriptlets

References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-01-27 13:06:38 +01:00
parent 46d8661dcb
commit 8f048d7d79
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -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