[gnome-icon-theme-extras] Update icon cache scriptlet
Christopher Aillon
caillon at fedoraproject.org
Sun May 8 02:16:20 UTC 2011
commit 121a1a979fb77ec84c7a6a0ce997d477a08ffbde
Author: Christopher Aillon <caillon at redhat.com>
Date: Sat May 7 19:15:50 2011 -0700
Update icon cache scriptlet
http://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
gnome-icon-theme-extras.spec | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/gnome-icon-theme-extras.spec b/gnome-icon-theme-extras.spec
index bd4547e..e6ab5b0 100644
--- a/gnome-icon-theme-extras.spec
+++ b/gnome-icon-theme-extras.spec
@@ -1,7 +1,7 @@
Summary: Additional GNOME icons
Name: gnome-icon-theme-extras
Version: 3.0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
#VCS: git:git://git.gnome.org/gnome-icon-theme-extras
Source0: http://download.gnome.org/sources/gnome-icon-theme-extras/3.0/%{name}-%{version}.tar.bz2
License: CC-BY-SA
@@ -9,8 +9,6 @@ BuildArch: noarch
Group: User Interface/Desktops
BuildRequires: icon-naming-utils >= 0.8.7
Requires: gnome-icon-theme
-Requires(posttrans): gtk2 >= 2.6.2
-Requires(postun): gtk2 >= 2.6.2
%description
This package contains extra device and mime-type icons for use by
@@ -25,11 +23,17 @@ the GNOME desktop.
%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)
@@ -38,6 +42,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
%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