Adjust icons cache update according to template

This commit is contained in:
Jan Horak 2009-07-24 10:44:55 +00:00
parent 8fa89a42da
commit 8f828a9d39

View File

@ -19,7 +19,7 @@
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 3.5.1 Version: 3.5.1
Release: 2%{?dist} Release: 3%{?dist}
URL: http://www.mozilla.org/projects/firefox/ URL: http://www.mozilla.org/projects/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet Group: Applications/Internet
@ -274,17 +274,17 @@ touch $RPM_BUILD_ROOT/%{mozappdir}/components/xpti.dat
%post %post
update-desktop-database &> /dev/null || : update-desktop-database &> /dev/null || :
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi fi
%postun %postun
update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor &>/dev/null
if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi fi
update-desktop-database &> /dev/null || :
%preun %preun
# is it a final removal? # is it a final removal?
@ -294,6 +294,8 @@ if [ $1 -eq 0 ]; then
%{__rm} -rf %{mozappdir}/plugins %{__rm} -rf %{mozappdir}/plugins
fi fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -338,6 +340,9 @@ fi
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Fri Jul 24 2009 Jan Horak <jhorak@redhat.com> - 3.5.1-3
- Adjust icons cache update according to template
* Wed Jul 22 2009 Jan Horak <jhorak@redhat.com> - 3.5.1-2 * Wed Jul 22 2009 Jan Horak <jhorak@redhat.com> - 3.5.1-2
- New icons fixed - New icons fixed