Revert "Remove obsolete scriptlets"

We need this package to be buildable on RHEL too.

This reverts commit 933eabfcdf.
This commit is contained in:
Lubomir Rintel 2018-01-22 11:51:53 +01:00
parent 933eabfcdf
commit a5056f20d8
1 changed files with 9 additions and 0 deletions

View File

@ -112,14 +112,23 @@ rm -f %{buildroot}%{_libdir}/%{name}/*.la
%find_lang %{name}
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%systemd_post ModemManager.service
%preun
%systemd_preun ModemManager.service
%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
%systemd_postun
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%post glib -p /sbin/ldconfig
%postun glib -p /sbin/ldconfig