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 - 3.0.0-2 +- Update icon cache scriptlet + * Tue Apr 5 2011 Christopher Aillon 3.0.0-1 - Update to 3.0.0