rpms/gnome-icon-theme/F-13 gnome-icon-theme.spec,1.116,1.117

Matthias Clasen mclasen at fedoraproject.org
Tue Apr 20 04:21:39 UTC 2010


Author: mclasen

Update of /cvs/pkgs/rpms/gnome-icon-theme/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv20215

Modified Files:
	gnome-icon-theme.spec 
Log Message:
reinstate some lost icons



Index: gnome-icon-theme.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-icon-theme/F-13/gnome-icon-theme.spec,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -p -r1.116 -r1.117
--- gnome-icon-theme.spec	19 Apr 2010 00:15:26 -0000	1.116
+++ gnome-icon-theme.spec	20 Apr 2010 04:21:38 -0000	1.117
@@ -1,7 +1,7 @@
 Summary: GNOME icon theme
 Name: gnome-icon-theme
 Version: 2.30.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
 Source1: gnome-icon-theme-extra-device-icons-5.tar.bz2
@@ -33,6 +33,63 @@ This package contains the default icon t
 %install
 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
+
 %posttrans
 gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
 
@@ -47,6 +104,9 @@ gtk-update-icon-cache --quiet %{_datadir
 
 
 %changelog
+* Tue Apr 20 2010 Matthias Clasen <mclasen at redhat.com> 2.30.1-2
+- reinstate some extra icons that got lost in the last build
+
 * Sun Apr 18 2010 Matthias Clasen <mclasen at redhat.com> 2.30.1-1
 - Update to 2.30.1
 



More information about the scm-commits mailing list