[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/gedit/devel gedit.spec,1.34,1.35



Update of /cvs/dist/rpms/gedit/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv8072

Modified Files:
	gedit.spec 
Log Message:
Fix the icon



Index: gedit.spec
===================================================================
RCS file: /cvs/dist/rpms/gedit/devel/gedit.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- gedit.spec	8 Apr 2005 19:01:56 -0000	1.34
+++ gedit.spec	12 Apr 2005 16:27:33 -0000	1.35
@@ -14,7 +14,7 @@
 Summary:	gEdit is a small but powerful text editor for GNOME.
 Name:		gedit
 Version:	2.10.2
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPL
 Group:		Applications/Editors
@@ -97,6 +97,10 @@
   --add-category X-Red-Hat-Base                             \
   $RPM_BUILD_ROOT%{_datadir}/applications/*
 
+## add the icon to the hicolor theme
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
+/bin/cp $RPM_BUILD_ROOT%{_datadir}/pixmaps/gedit-icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/text-editor.png 
+
 ## clean up all the static libs for plugins (workaround for no -module)
 /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins -name "*.a"`
 /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins -name "*.la"`
@@ -117,6 +121,12 @@
   gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
 done
 
+# update icon themes
+touch %{_datadir}/icons/hicolor
+if [ -x /usr/bin/gtk-update-icon-cache ]; then
+  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+fi
+
 %postun
 update-desktop-database %{_datadir}/applications
 scrollkeeper-update
@@ -126,6 +136,7 @@
 %doc README COPYING ChangeLog TODO AUTHORS THANKS
 %{_datadir}/gedit-2
 %{_datadir}/pixmaps
+%{_datadir}/icons
 %{_datadir}/gnome
 %{_datadir}/idl
 %{_datadir}/omf
@@ -146,6 +157,10 @@
 %{_libdir}/pkgconfig/gedit-2.10.pc
 
 %changelog
+* Tue Apr 12 2005 Matthias Clasen <mclasen redhat com> - 2.10.2-2
+- Add the icon to the hicolor theme, and rename it to what
+  the .desktop file says.
+
 * Fri Apr  8 2005 Ray Strode <rstrode redhat com> - 2.10.2-1
 - Update to upstream version 2.10.2
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]