Update icon cache scriptlet

http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
This commit is contained in:
Christopher Aillon 2011-05-07 19:44:02 -07:00
parent 480015784f
commit 8d148ef3e5

View File

@ -1,7 +1,7 @@
Summary: Basic requirement for icon themes
Name: hicolor-icon-theme
Version: 0.12
Release: 2%{?dist}
Release: 3%{?dist}
License: GPL+
Group: User Interface/Desktops
URL: http://icon-theme.freedesktop.org/wiki/HicolorTheme
@ -30,17 +30,17 @@ make DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr install
touch $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
fi
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%clean
rm -rf $RPM_BUILD_ROOT
@ -51,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
%ghost %{_datadir}/icons/hicolor/icon-theme.cache
%changelog
* Sat May 07 2011 Christopher Aillon <caillon@redhat.com> - 0.12-3
- Update icon cache scriptlet
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild