From e5f3c212122589af74f7c1a898af959d34964bda Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 12 Apr 2005 16:27:33 +0000 Subject: [PATCH] Fix the icon --- gedit.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gedit.spec b/gedit.spec index 70c25af..4a06c7a 100644 --- a/gedit.spec +++ b/gedit.spec @@ -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 @@ desktop-file-install --vendor gnome --delete-original \ --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 @@ for S in $SCHEMAS; do 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 @@ scrollkeeper-update %doc README COPYING ChangeLog TODO AUTHORS THANKS %{_datadir}/gedit-2 %{_datadir}/pixmaps +%{_datadir}/icons %{_datadir}/gnome %{_datadir}/idl %{_datadir}/omf @@ -146,6 +157,10 @@ scrollkeeper-update %{_libdir}/pkgconfig/gedit-2.10.pc %changelog +* Tue Apr 12 2005 Matthias Clasen - 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 - 2.10.2-1 - Update to upstream version 2.10.2