[gnome-clocks] Add packaging snippets to update the icon cache
Yanko Kaneti
yaneti at fedoraproject.org
Mon Oct 1 10:25:50 UTC 2012
commit c09eb7dfdc54e5d130fddb9555d4ae2e75f9b1e7
Author: Yanko Kaneti <yaneti at declera.com>
Date: Mon Oct 1 13:24:22 2012 +0300
Add packaging snippets to update the icon cache
gnome-clocks.spec | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/gnome-clocks.spec b/gnome-clocks.spec
index eb7df91..317ff32 100644
--- a/gnome-clocks.spec
+++ b/gnome-clocks.spec
@@ -2,7 +2,7 @@
Name: gnome-clocks
Version: 0.1.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Clock application designed for GNOME 3
License: GPLv2+
@@ -32,7 +32,18 @@ rm -r $RPM_BUILD_ROOT/%{_datadir}/doc
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desktop
%find_lang gnome-clocks
-
+%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 -f %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+
%files -f gnome-clocks.lang
%doc COPYING README NEWS
%{_bindir}/gnome-clocks
@@ -43,6 +54,9 @@ desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/gnome-clocks.desk
%changelog
+* Mon Oct 1 2012 Yanko Kaneti <yaneti at declera.com> - 0.1.3-2
+- Add packaging snippets to update the icon cache
+
* Thu Sep 27 2012 Yanko Kaneti <yaneti at declera.com> - 0.1.3-1
- Update to 0.1.3
More information about the scm-commits
mailing list