add scalable directories for symbolic icons

epel9
Matthias Clasen 15 years ago
parent 689ef9ec4f
commit 027002f32f

@ -1,7 +1,7 @@
Summary: GNOME icon theme
Name: gnome-icon-theme
Version: 2.30.2.1
Release: 1%{?dist}
Release: 2%{?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
License: GPL+
@ -37,6 +37,71 @@ available under old names.
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Add scalable directories for symbolic icons
(cd $RPM_BUILD_ROOT%{_datadir}/icons/gnome
mkdir -p scalable/actions
mkdir -p scalable/apps
mkdir -p scalable/devices
mkdir -p scalable/emblems
mkdir -p scalable/mimetypes
mkdir -p scalable/places
mkdir -p scalable/status
sed -i -e 's#^\(Directories=.*\)$#\1,scalable/actions,scalable/apps,scalable/devices,scalable/emblems,scalable/mimetypes,scalable/places,scalable/status#' index.theme
cat >>index.theme <<EOF
[scalable/actions]
Size=16
MinSize=16
MaxSize=256
Context=Actions
Type=Scalable
[scalable/apps]
Size=16
MinSize=16
MaxSize=256
Context=Applications
Type=Scalable
[scalable/devices]
Size=16
MinSize=16
MaxSize=256
Context=Devices
Type=Scalable
[scalable/emblems]
Size=16
MinSize=16
MaxSize=256
Context=Emblems
Type=Scalable
[scalable/mimetypes]
Size=16
MinSize=16
MaxSize=256
Context=Mimetypes
Type=Scalable
[scalable/places]
Size=16
MinSize=16
MaxSize=256
Context=Places
Type=Scalable
[scalable/status]
Size=16
MinSize=16
MaxSize=256
Context=Status
Type=Scalable
EOF
)
(cd $RPM_BUILD_ROOT%{_datadir}
echo "%%defattr(-,root,root)"
find icons/gnome -name "gtk-\*" -or -not -type l -printf "%%%%{_datadir}/%%p\n"
@ -67,6 +132,9 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
%files legacy -f legacy.txt
%changelog
* Fri May 21 2010 Matthias Clasen <mclasen@redhat.com> 2.30.2.1-2
- Add scalable directories for symbolic icons
* Thu Apr 29 2010 Bastien Nocera <bnocera@redhat.com> 2.30.2.1-1
- Update to 2.30.2.1

Loading…
Cancel
Save