diff --git a/setroubleshoot.spec b/setroubleshoot.spec index eeafdf3..6647440 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -58,24 +58,27 @@ to user preference. The same tools can be run on existing log files. %defattr(-,root,root,-) %{pkgguidir} %config(noreplace) %{_sysconfdir}/xdg/autostart/* -%config %{_datadir}/applications/*.desktop +%{_datadir}/applications/*.desktop %{_datadir}/dbus-1/services/sealert.service -%{_datadir}/icons/hicolor +%{_datadir}/icons/hicolor/*/*/* %dir %attr(0755,root,root) %{pkgpythondir} %{pkgpythondir}/browser.py* %{pkgpythondir}/gui_utils.py* %{_bindir}/seapplet %post -/usr/bin/desktop-file-install %{_datadir}/applications 2> /dev/null touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || : %postun -/usr/bin/update-desktop-database %{_datadir}/applications 2> /dev/null -touch --no-create %{_datadir}/icons/hicolor +if [ $1 -eq 0 ] ; then +touch --no-create %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%posttrans +%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : + %prep %setup -q @@ -205,7 +208,11 @@ Setroubleshoot documentation package * Fri Jan 6 2012 Dan Walsh - 3.0.45-1 - Update to latest translations -* Tue Dec 19 2011 - 3.0.45-1 +* Fri Dec 23 2011 Rex Dieter 3.0.45-2 +- optimize/update scriptlets +- don't own icons/hicolor +- drop %%config tag on applications/*.desktop + - Patch from Mgrepl to stop printable from crashing if None is passed in - Update to latest translations