[hotot/f17] use icon cache scriplet. fixes rhbz#892337
Rahul Sundaram
sundaram at fedoraproject.org
Sun Jan 13 04:45:47 UTC 2013
commit a0524eb6179ecf377b07a30953864f485ecc20d5
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date: Sat Jan 12 23:45:06 2013 -0500
use icon cache scriplet. fixes rhbz#892337
hotot.spec | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/hotot.spec b/hotot.spec
index 744c98f..9e05ba7 100644
--- a/hotot.spec
+++ b/hotot.spec
@@ -2,7 +2,7 @@
%global gitdate 20121215
Name: hotot
Version: 0.9.9
-Release: 1.%{gitdate}git%{githash}%{?dist}
+Release: 2.%{gitdate}git%{githash}%{?dist}
Summary: Lightweight & open source micro blogging client
Group: Applications/Internet
License: LGPLv3+ and LGPLv3 and BSD and GPLv2
@@ -66,6 +66,18 @@ make %{?_smp_mflags}
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
+%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 gtk
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
@@ -89,6 +101,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%changelog
+* Sat Jan 12 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 0.9.7-2.20121215gitcaad812
+- use icon cache scriplet. fixes rhbz#892337
+
* Sat Dec 15 2012 Rahul Sundaram <sundaram at fedoraproject.org> - 0.9.7-1.20121215gitcaad812
- update to 0.9.9 snapshot
- spec updates for cmake switch
More information about the scm-commits
mailing list