Fix the icon

This commit is contained in:
Matthias Clasen 2005-04-12 16:27:33 +00:00
parent 553543424c
commit e5f3c21212

View File

@ -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 <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