rpms/gitg/devel gitg.spec,1.5,1.6

jbowes jbowes at fedoraproject.org
Tue Apr 13 14:51:00 UTC 2010


Author: jbowes

Update of /cvs/pkgs/rpms/gitg/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv4081

Modified Files:
	gitg.spec 
Log Message:
use update-icon-cache snippets


Index: gitg.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gitg/devel/gitg.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- gitg.spec	13 Apr 2010 14:37:29 -0000	1.5
+++ gitg.spec	13 Apr 2010 14:51:00 -0000	1.6
@@ -1,6 +1,6 @@
 Name:           gitg
 Version:        0.0.6
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        GTK+ graphical interface for the git revision control system
 
 Group:          Development/Tools
@@ -63,6 +63,7 @@ fi
 %post
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gitg.schemas >  /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %preun
@@ -72,6 +73,17 @@ if [ "$1" -eq 0 ]; then
 fi
 
 
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
 %files -f %{name}.lang
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING NEWS README ChangeLog
@@ -80,11 +92,21 @@ fi
 %{_datadir}/gitg
 %{_mandir}/man1/gitg.1*
 
+%{_datadir}/icons/hicolor/16x16/apps/gitg.png
+%{_datadir}/icons/hicolor/22x22/apps/gitg.png
+%{_datadir}/icons/hicolor/24x24/apps/gitg.png
+%{_datadir}/icons/hicolor/32x32/apps/gitg.png
+%{_datadir}/icons/hicolor/48x48/apps/gitg.png
+%{_datadir}/icons/hicolor/scalable/apps/gitg.svg
+
 %{_sysconfdir}/gconf/schemas/gitg.schemas
 %{_datadir}/applications/gitg.desktop
 
 
 %changelog
+* Tue Apr 13 2010 James Bowes <jbowes at redhat.com> 0.0.6-3
+- update icon cache
+
 * Tue Apr 13 2010 James Bowes <jbowes at redhat.com> 0.0.6-2
 - Remove pixmaps dir
 



More information about the scm-commits mailing list