@ -1,7 +1,7 @@
Summary: GNOME icon theme
Name: gnome-icon-theme
Version: 2.30.0
Release: 2 %{?dist}
Version: 2.30.1
Release: 1 %{?dist}
#VCS: git:git://git.gnome.org/gnome-icon-theme
Source0: http://download.gnome.org/sources/gnome-icon-theme/2.30/%{name}-%{version}.tar.bz2
Source1: gnome-icon-theme-extra-device-icons-5.tar.bz2
@ -31,74 +31,13 @@ This package contains the default icon theme used by the GNOME desktop.
%configure
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
## remove these bogus files
rm -rf $RPM_BUILD_ROOT/usr/share/locale/*
# 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 256x256; 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}
cp %{SOURCE3} $RPM_BUILD_ROOT/usr/share/icons/gnome/16x16/apps
tar xj -C $RPM_BUILD_ROOT/usr/share/icons/gnome -f %{SOURCE4}
tar xj -C $RPM_BUILD_ROOT/usr/share/icons/gnome -f %{SOURCE5}
sed -i -e 's#^\(Directories=.*\)$#\1,scalable/apps,scalable/actions,scalable/devices,scalable/status#' $RPM_BUILD_ROOT/usr/share/icons/gnome/index.theme
cat >>$RPM_BUILD_ROOT/usr/share/icons/gnome/index.theme <<EOF
[scalable/apps]
Size=48
MinSize=32
MaxSize=256
Context=Applications
Type=Scalable
[scalable/actions]
Size=48
MinSize=32
MaxSize=256
Context=Actions
Type=Scalable
[scalable/devices]
Size=48
MinSize=32
MaxSize=256
Context=Devices
Type=Scalable
[scalable/status]
Size=48
MinSize=32
MaxSize=256
Context=Status
Type=Scalable
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%posttrans
/usr/bin/ gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
%postun
/usr/bin/ gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
%files
%defattr(-,root,root)
@ -108,6 +47,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Apr 18 2010 Matthias Clasen <mclasen@redhat.com> 2.30.1-1
- Update to 2.30.1
* Fri Apr 2 2010 Matthias Clasen <mclasen@redhat.com> 2.30.0-2
- Fix a zoom icon