[gnome-icon-theme-symbolic] Update icon cache scriptlet
Christopher Aillon
caillon at fedoraproject.org
Sun May 8 02:18:01 UTC 2011
commit 67eaa34927c483c2415845dc69b07e33ec10ee09
Author: Christopher Aillon <caillon at redhat.com>
Date: Sat May 7 19:17:54 2011 -0700
Update icon cache scriptlet
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
gnome-icon-theme-symbolic.spec | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/gnome-icon-theme-symbolic.spec b/gnome-icon-theme-symbolic.spec
index fc5d99a..80b6a97 100644
--- a/gnome-icon-theme-symbolic.spec
+++ b/gnome-icon-theme-symbolic.spec
@@ -1,7 +1,7 @@
Summary: Symbolic GNOME icons
Name: gnome-icon-theme-symbolic
Version: 3.0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
#VCS: git:git://git.gnome.org/gnome-icon-theme-symbolic
Source0: http://download.gnome.org/sources/gnome-icon-theme-symbolic/3.0/%{name}-%{version}.tar.bz2
License: CC-BY-SA
@@ -25,11 +25,17 @@ export ac_cv_path_GTK_UPDATE_ICON_CACHE=/bin/true
%install
make install DESTDIR=$RPM_BUILD_ROOT
-%posttrans
-/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome/ || :
+%post
+touch --no-create %{_datadir}/icons/gnome &>/dev/null || :
%postun
-/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome/ || :
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/gnome &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || :
%files
%defattr(-,root,root)
@@ -37,6 +43,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_datadir}/icons/gnome/*
%changelog
+* Sat May 07 2011 Christopher Aillon <caillon at redhat.com> - 3.0.0-2
+- Update icon cache scriptlet
+
* Tue Apr 5 2011 Christopher Aillon <caillon at redhat.com> 3.0.0-1
- Update to 3.0.0
More information about the scm-commits
mailing list