[gcin/f17] Fix the icon new location issue.

Christopher Meng cicku at fedoraproject.org
Tue Jul 16 04:53:18 UTC 2013


commit 832c551c8aad50a5cec8e660e5acee062e76cd81
Author: Christopher Meng <rpm at cicku.me>
Date:   Tue Jul 16 12:49:55 2013 +0800

    Fix the icon new location issue.

 gcin.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gcin.spec b/gcin.spec
index cb9d9d8..26e69b2 100644
--- a/gcin.spec
+++ b/gcin.spec
@@ -137,6 +137,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/gcin-tools.desktop
 alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/%{name}.conf 40
 
 %post             data
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
 /bin/touch --no-create %{_datadir}/icons/%{name} &>/dev/null || :
 
 %post             gtk2
@@ -150,7 +151,8 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
 %post im-client -p /sbin/ldconfig
 
 %posttrans        data
-/usr/bin/gtk-update-icon-cache %{_datadir}/icons/%{name} &>/dev/null || :
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
+gtk-update-icon-cache %{_datadir}/icons/%{name} &>/dev/null || :
 
 %postun
 if [ $1 -eq 0 ]; then
@@ -161,7 +163,9 @@ fi
 %postun           data
 if [ $1 -eq 0 ] ; then
     /bin/touch --no-create %{_datadir}/icons/%{name} &>/dev/null
-    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/%{name} &>/dev/null || :
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/%{name} &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
 
 %postun           gtk2
@@ -193,8 +197,8 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || :
 
 %files            data
 %{_datadir}/%{name}/script/
-%{_datadir}/icons/%{name}.png
 %{_datadir}/icons/%{name}/
+%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
 
 %files            im-client
 %{_libdir}/%{name}/libgcin*.so.*


More information about the scm-commits mailing list