diff --git a/gnome-icon-theme.spec b/gnome-icon-theme.spec index 93168a5..82d3310 100644 --- a/gnome-icon-theme.spec +++ b/gnome-icon-theme.spec @@ -1,7 +1,7 @@ Summary: Base gnome icons Name: gnome-icon-theme Version: 2.23.2 -Release: 1%{?dist} +Release: 2%{?dist} Source0: http://download.gnome.org/sources/gnome-icon-theme/2.23/%{name}-%{version}.tar.bz2 Source1: gnome-icon-theme-extra-device-icons-4.tar.bz2 License: GPL+ @@ -35,6 +35,9 @@ make install DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT/usr/share/locale/* ## create symlinks so the all icon themes know some extra icons we've added +%if 0 +# don't do this in unstable rawhide, so we can gauge how much of this +# is actually needed for i in 24x24; do mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$i/apps cd $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$i/apps @@ -52,7 +55,24 @@ ln -s ../../../gnome/$i/categories/preferences-system.png redhat-server_settings ln -s ../../../gnome/$i/categories/preferences-system.png redhat-system_tools.png ln -s ../../../gnome/$i/places/start-here.png redhat-starthere.png ln -s ../../../gnome/$i/places/user-home.png redhat-home.png - +done +%endif + +# create symlinks for gtk stock icons, these are not really 'legacy' +# this uses the legacy-icon-mapping.xml file in cvs +cd $RPM_BUILD_ROOT/usr/share/icons/gnome +for size in 8x8 16x16 22x22 24x24 32x32 48x48 scalable; do + ( + cd $size + for context in *; do + if [ -d $context ]; then + ( + cd $context + INU_DATA_DIR=$RPM_SOURCE_DIR /usr/bin/icon-name-mapping -c $context + ) + fi + done + ) done tar xj -C $RPM_BUILD_ROOT/usr/share/icons/gnome -f %{SOURCE1} @@ -60,6 +80,8 @@ tar xj -C $RPM_BUILD_ROOT/usr/share/icons/gnome -f %{SOURCE1} %clean rm -rf $RPM_BUILD_ROOT + + %post for dir in /usr/share/icons/*; do if test -d "$dir"; then @@ -73,10 +95,13 @@ done %defattr(-,root,root) %doc COPYING AUTHORS %{_datadir}/icons/gnome -%{_datadir}/icons/hicolor/* +#%{_datadir}/icons/hicolor/* %{_datadir}/pkgconfig/gnome-icon-theme.pc %changelog +* Fri Jun 20 2008 Matthias Clasen - 2.23.2-2 +- Re-add the symlinks for gtk stock icons, remove some other symlinks + * Tue Jun 17 2008 Matthias Clasen - 2.23.2-1 - Update to 2.23.2 diff --git a/legacy-icon-mapping.xml b/legacy-icon-mapping.xml new file mode 100644 index 0000000..6f2dcc5 --- /dev/null +++ b/legacy-icon-mapping.xml @@ -0,0 +1,267 @@ + + + + + + + + gtk-quit + + + gtk-cancel + + + gtk-new + + + gtk-open + + + gtk-print + + + gtk-print-preview + + + gtk-properties + + + gtk-revert-to-saved-ltr + gtk-revert-to-saved-rtl + + + gtk-save + + + gtk-save-as + + + gtk-clear + + + gtk-copy + + + gtk-cut + + + gtk-delete + + + gtk-find + + + gtk-find-and-replace + + + gtk-paste + + + gtk-redo-ltr + + + gtk-select-all + + + gtk-undo-ltr + + + gtk-indent-rtl + gtk-unindent-ltr + + + gtk-indent-ltr + gtk-unindent-rtl + + + gtk-justify-center + + + gtk-justify-fill + + + gtk-justify-left + + + gtk-justify-right + + + gtk-bold + + + gtk-italic + + + gtk-strikethrough + + + gtk-underline + + + gtk-goto-bottom + + + gtk-go-down + + + gtk-goto-first-ltr + gtk-goto-last-rtl + + + gtk-home + + + gtk-jump-to-ltr + gtk-jump-to-rtl + + + gtk-goto-last-ltr + gtk-goto-first-rtl + + + gtk-go-forward-ltr + gtk-go-back-rtl + + + gtk-go-back-ltr + gtk-go-forward-rtl + + + gtk-goto-top + + + gtk-go-up + + + gtk-about + + + gtk-add + + + gtk-remove + + + gtk-media-pause + + + gtk-media-play-ltr + + + gtk-media-stop + + + gtk-media-record + + + gtk-media-rewind-ltr + gtk-media-forward-rtl + + + gtk-media-forward-ltr + gtk-media-rewind-rtl + + + gtk-media-previous-ltr + gtk-media-next-rtl + + + gtk-media-next-ltr + gtk-media-previous-rtl + + + gtk-cancel + gtk-stop + + + gtk-execute + + + gtk-spell-check + + + gtk-fullscreen + + + gtk-refresh + + + gtk-leave-fullscreen + + + gtk-sort-ascending + + + gtk-sort-descending + + + gtk-close + + + gtk-zoom-fit + + + gtk-zoom-in + + + gtk-zoom-100 + + + gtk-zoom-out + + + + + gtk-help + + + + + gtk-preferences + + + + + gtk-harddisk + + + gtk-floppy + + + gtk-cdrom + + + gtk-print + + + + + gtk-file + + + + + gtk-directory + + + gtk-network + + + + + gtk-dialog-error + + + gtk-dialog-info + + + gtk-dialog-authentication + + + gtk-dialog-question + + + gtk-dialog-warning + + +