Remove obsolete scriptlets that are now automatic.

This commit is contained in:
Charalampos Stratakis 2018-02-05 17:59:56 +01:00
parent dc669abc1d
commit c86891d488

View File

@ -1156,39 +1156,6 @@ CheckPython optimized
%endif # with tests
# ======================================================
# Scriptlets
# ======================================================
%if %{without flatpackage}
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%endif
%post
%if %{with flatpackage}
/sbin/ldconfig
%else
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%endif
%postun
%if %{with flatpackage}
/sbin/ldconfig
%else
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 || :
fi
%endif
%files
%defattr(-, root, root)
%license LICENSE