fix broken symlinks

epel9
Matthias Clasen 19 years ago
parent dc198bc505
commit 2d12d24e88

@ -3,7 +3,6 @@ Name: gnome-icon-theme
Version: 2.16.0.1
Release: 2%{?dist}
Source0: %{name}-%{version}.tar.bz2
Source1: extra-icons.tar.bz2
License: GPL
BuildArch: noarch
Group: User Interface/Desktops
@ -12,6 +11,7 @@ BuildRequires: icon-naming-utils >= 0.8.1
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: gettext
BuildRequires: librsvg2
Requires: hicolor-icon-theme
Requires: pkgconfig
Prereq: gtk2 >= 2.6.2
@ -34,22 +34,32 @@ rm -rf $RPM_BUILD_ROOT/usr/share/locale/*
rm -rf $RPM_BUILD_ROOT/usr/share/icons/gnome/*/apps/susehelpcenter.*
## create some missing icons
cd $RPM_BUILD_ROOT%{_datadir}/icons/gnome
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/gnome/48x48/places
rsvg-convert -h 48 -w 48 scalable/categories/applications-accessories.svg -o 48x48/categories/applications-accessories.png
rsvg-convert -h 48 -w 48 scalable/categories/applications-games.svg -o 48x48/categories/applications-games.png
rsvg-convert -h 48 -w 48 scalable/categories/applications-internet.svg -o 48x48/categories/applications-internet.png
rsvg-convert -h 48 -w 48 scalable/categories/applications-development.svg -o 48x48/categories/applications-development.png
rsvg-convert -h 48 -w 48 scalable/categories/preferences-system.svg -o 48x48/categories/preferences-system.png
rsvg-convert -h 48 -w 48 scalable/places/start-here.svg -o 48x48/places/start-here.png
## create symlinks so the all icon themes know some extra icons we've added
for i in 48x48 24x24; do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$i/apps
cd $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/$i/apps
ln -s ../../../gnome/$i/apps/applications-development.png redhat-programming.png
ln -s ../../../gnome/$i/apps/applications-multimedia.png redhat-sound_video.png
ln -s ../../../gnome/$i/apps/applications-accessories.png redhat-accessories.png
ln -s ../../../gnome/$i/apps/applications-graphics.png redhat-graphics.png
ln -s ../../../gnome/$i/apps/applications-internet.png redhat-internet.png
ln -s ../../../gnome/$i/apps/applications-office.png redhat-office.png
ln -s ../../../gnome/$i/apps/applications-games.png redhat-games.png
ln -s ../../../gnome/$i/apps/preferences-desktop.png redhat-preferences.png
ln -s ../../../gnome/$i/apps/preferences-system.png redhat-system_settings.png
ln -s ../../../gnome/$i/apps/preferences-system.png redhat-server_settings.png
ln -s ../../../gnome/$i/apps/preferences-system.png redhat-system_tools.png
ln -s ../../../gnome/$i/categories/applications-development.png redhat-programming.png
ln -s ../../../gnome/$i/categories/applications-multimedia.png redhat-sound_video.png
ln -s ../../../gnome/$i/categories/applications-accessories.png redhat-accessories.png
ln -s ../../../gnome/$i/categories/applications-graphics.png redhat-graphics.png
ln -s ../../../gnome/$i/categories/applications-internet.png redhat-internet.png
ln -s ../../../gnome/$i/categories/applications-office.png redhat-office.png
ln -s ../../../gnome/$i/categories/applications-games.png redhat-games.png
ln -s ../../../gnome/$i/categories/preferences-desktop.png redhat-preferences.png
ln -s ../../../gnome/$i/categories/preferences-system.png redhat-system_settings.png
ln -s ../../../gnome/$i/categories/preferences-system.png redhat-server_settings.png
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

Loading…
Cancel
Save