Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
46d8661dcb
commit
8f048d7d79
@ -477,20 +477,16 @@ make check|| {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
|
%ldconfig_scriptlets
|
||||||
# ldconfig and gtk-update-icon-cache is not needed
|
%ldconfig_scriptlets web
|
||||||
%else
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||||
%post gtk
|
%post gtk
|
||||||
/sbin/ldconfig
|
%{?ldconfig}
|
||||||
# update icon cache
|
# update icon cache
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun gtk
|
%postun gtk
|
||||||
/sbin/ldconfig
|
%{?ldconfig}
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
@ -498,12 +494,6 @@ fi
|
|||||||
|
|
||||||
%posttrans gtk
|
%posttrans gtk
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%post web -p /sbin/ldconfig
|
|
||||||
|
|
||||||
|
|
||||||
%postun web -p /sbin/ldconfig
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
|
Loading…
Reference in New Issue
Block a user