[sar2] add missing icon-cache scriptlets
Tom Callaway
spot at fedoraproject.org
Mon Aug 8 19:08:56 UTC 2011
commit 909b219c889cd7a68b628859cb8e09aec6c63573
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date: Mon Aug 8 15:08:44 2011 -0400
add missing icon-cache scriptlets
sar2.spec | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/sar2.spec b/sar2.spec
index a80212d..5444994 100644
--- a/sar2.spec
+++ b/sar2.spec
@@ -1,6 +1,6 @@
Name: sar2
Version: 2.3.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: An open source helicopter simulator
Group: Amusements/Games
# Code is GPLv2+
@@ -53,6 +53,18 @@ cp -a extra/%{name}.xpm %{buildroot}%{_datadir}/icons/hicolor/48x48/
cp -a src/icons/SearchAndRescue.xpm %{buildroot}%{_datadir}/pixmaps/
desktop-file-install --dir=%{buildroot}%{_datadir}/applications extra/%{name}.desktop
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+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
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
%files
%doc AUTHORS CHANGELOG HACKING LICENSE README
%{_bindir}/%{name}
@@ -63,5 +75,8 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications extra/%{name}.de
%{_mandir}/man6/*
%changelog
+* Mon Aug 8 2011 Tom Callaway <spot at fedoraproject.org> - 2.3.0-2
+- update icon cache
+
* Tue Jun 14 2011 Tom Callaway <spot at fedoraproject.org> - 2.3.0-1
- initial package
More information about the scm-commits
mailing list