[gnome-weather] Include new icons and add icon cache scriptlets

Kalev Lember kalev at fedoraproject.org
Thu Jun 20 22:36:55 UTC 2013


commit 662eff761cfd116043a328c693fc3a1db23b92b0
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Thu Jun 20 22:33:53 2013 +0200

    Include new icons and add icon cache scriptlets

 gnome-weather.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/gnome-weather.spec b/gnome-weather.spec
index 71ab148..7eed841 100644
--- a/gnome-weather.spec
+++ b/gnome-weather.spec
@@ -41,25 +41,33 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
 %find_lang %{name}
 
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
 %postun
 if [ $1 -eq 0 ] ; then
-    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
 %posttrans
-/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files -f %{name}.lang
 %doc NEWS data/CREDITS
 %{_datadir}/%{name}
 %{_bindir}/%{name}
 %{_datadir}/glib-2.0/schemas/*
+%{_datadir}/icons/hicolor/*/apps/gnome-weather.png
 %{_datadir}/applications/*
 %{_libdir}/gnome-weather/
 
 %changelog
 * Fri Jun 21 2013 Kalev Lember <kalevlember at gmail.com> - 3.9.3-1
 - Update to 3.9.3
+- Include new icons and add icon cache scriptlets
 
 * Sun Jun 02 2013 Kalev Lember <kalevlember at gmail.com> - 3.9.2-1
 - Update to 3.9.2


More information about the scm-commits mailing list