[freetennis] Use the latest icon cache script recommendations

Bruno Wolff III bruno at fedoraproject.org
Sat Mar 10 18:08:53 UTC 2012


commit 39743abeee5d54ab4b50e7a9ec72823ccd00758f
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sat Mar 10 12:08:28 2012 -0600

    Use the latest icon cache script recommendations

 freetennis.spec |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/freetennis.spec b/freetennis.spec
index a64af90..65c55e0 100644
--- a/freetennis.spec
+++ b/freetennis.spec
@@ -55,13 +55,16 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
 install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/
 
 %post
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
-touch --no-create %{_datadir}/icons/hicolor || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+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 COPYING CHANGES.txt AUTHORS TODO.txt web-site/
@@ -74,6 +77,7 @@ touch --no-create %{_datadir}/icons/hicolor || :
 * Sat Mar 10 2012 Bruno Wolff III <bruno at wolff.to> - 0.4.8-21
 - gdk-pixbuf isn't really used
 - Removed some obsolete stuff from the spec file
+- Use the latest icon cache script recommendations
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.4.8-20
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list