From 7c3a75cbe3d107efe958e38c6fc835777ae81719 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mar 23 2010 14:48:15 +0000 Subject: - Update scriptlets --- diff --git a/gnome-icon-theme.spec b/gnome-icon-theme.spec index c29f127..dec0368 100644 --- a/gnome-icon-theme.spec +++ b/gnome-icon-theme.spec @@ -1,7 +1,7 @@ Summary: GNOME icon theme Name: gnome-icon-theme Version: 2.29.2 -Release: 2%{?dist} +Release: 3%{?dist} #VCS: git:git://git.gnome.org/gnome-icon-theme Source0: http://download.gnome.org/sources/gnome-icon-theme/2.29/%{name}-%{version}.tar.bz2 Source1: gnome-icon-theme-extra-device-icons-5.tar.bz2 @@ -18,7 +18,8 @@ BuildRequires: librsvg2 BuildRequires: intltool Requires: hicolor-icon-theme Requires: pkgconfig -Requires(post): gtk2 >= 2.6.2 +Requires(posttrans): gtk2 >= 2.6.2 +Requires(postun): gtk2 >= 2.6.2 %description This package contains the default icon theme used by the GNOME desktop. @@ -93,14 +94,11 @@ EOF %clean rm -rf $RPM_BUILD_ROOT -%post -for dir in /usr/share/icons/*; do - if test -d "$dir"; then - if test -f "$dir/index.theme"; then - /usr/bin/gtk-update-icon-cache --quiet "$dir" || : - fi - fi -done +%posttrans +/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : + +%postun +/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : %files %defattr(-,root,root) @@ -110,6 +108,9 @@ done %changelog +* Tue Mar 23 2010 Bastien Nocera 2.29.2-3 +- Update scriptlets + * Tue Mar 16 2010 Matthias Clasen - 2.29.2-2 - Add gtk-missing-image to legacy mapping