Update icon cache scriptlet per packaging guidelines

See http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
This commit is contained in:
Christopher Aillon 2011-05-06 15:35:10 -07:00
parent 3c86bd28e8
commit 1a8f58d7cc

View File

@ -10,7 +10,7 @@
Summary: Automatic bug detection and reporting tool Summary: Automatic bug detection and reporting tool
Name: abrt Name: abrt
Version: 2.0.2 Version: 2.0.2
Release: 2%{?dist} Release: 3%{?dist}
License: GPLv2+ License: GPLv2+
Group: Applications/System Group: Applications/System
URL: https://fedorahosted.org/abrt/ URL: https://fedorahosted.org/abrt/
@ -403,20 +403,16 @@ fi
%endif %endif
%post gui %post gui
# update icon cache touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%postun gui %postun gui
touch --no-create %{_datadir}/icons/hicolor || : if [ $1 -eq 0 ] ; then
if [ -x %{_bindir}/gtk-update-icon-cache ]; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi fi
%posttrans %posttrans
@ -458,6 +454,9 @@ if [ "$1" -eq "0" ]; then
fi fi
%endif %endif
%posttrans gui
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README COPYING %doc README COPYING
@ -646,6 +645,9 @@ fi
%{_infodir}/abrt-retrace-server* %{_infodir}/abrt-retrace-server*
%changelog %changelog
* Fri May 06 2011 Christopher Aillon <caillon@redhat.com> - 2.0.2-3
- Update icon cache scriptlet per packaging guidelines
* Fri May 06 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.2-2 * Fri May 06 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.2-2
- flush messages in retrace client - flush messages in retrace client