update scriptlets to match current guidelines

epel9
Adam Williamson 12 years ago
parent 2fa893bbab
commit e883518d60

@ -124,13 +124,13 @@ desktop-file-install \
%post common
touch --no-create %{_datadir}/icons/hicolor || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%post gtk
update-desktop-database > /dev/null 2>&1 || :
/usr/bin/update-desktop-database &> /dev/null || :
%post qt
update-desktop-database > /dev/null 2>&1 || :
/usr/bin/update-desktop-database &> /dev/null || :
%post daemon
%systemd_post transmission-daemon.service
@ -138,17 +138,23 @@ update-desktop-database > /dev/null 2>&1 || :
%preun daemon
%systemd_preun transmission-daemon.service
%postun common
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
%postun daemon
%systemd_postun_with_restart transmission-daemon.service
%postun gtk
update-desktop-database > /dev/null 2>&1 || :
/usr/bin/update-desktop-database &> /dev/null || :
%postun qt
update-desktop-database > /dev/null 2>&1 || :
/usr/bin/update-desktop-database &> /dev/null || :
%posttrans common
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
@ -187,6 +193,9 @@ update-desktop-database > /dev/null 2>&1 || :
%doc %{_mandir}/man1/transmission-qt.*
%changelog
* Fri May 10 2013 Adam Williamson <awilliam@redhat.com>
- update scriptlets to match current guidelines
* Mon Apr 22 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 2.77-3
- use hardened build macro and enable fPIC for Qt build. resolves rhbz#955268

Loading…
Cancel
Save