[gnome-themes-standard] fix file list

Matthias Clasen mclasen at fedoraproject.org
Tue Jan 11 02:12:44 UTC 2011


commit 386c9c6d6ef73cd5d24d05c5469ebc31a95c33a3
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Mon Jan 10 21:12:27 2011 -0500

    fix file list

 gnome-themes-standard.spec |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gnome-themes-standard.spec b/gnome-themes-standard.spec
index deecb5a..cf84cb6 100644
--- a/gnome-themes-standard.spec
+++ b/gnome-themes-standard.spec
@@ -28,12 +28,27 @@ make %{?_smp_mflags}
 make install DESTDIR=$RPM_BUILD_ROOT
 %find_lang %{name}
 
+%post
+touch --no-create %{_datadir}/icons/Adwaita &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/Adwaita &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/Adwaita &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/Adwaita &>/dev/null || :
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 
 # Theme (gtk2, gtk3, background), WM
 %{_datadir}/themes/Adwaita
 
+# Icons
+%{_datadir}/icons/Adwaita
+
 # Background
 %{_datadir}/gnome-background-properties/*
 


More information about the scm-commits mailing list