rpms/gnome-themes/devel gnome-themes.spec,1.160,1.161

Matthias Clasen mclasen at fedoraproject.org
Mon May 24 14:02:48 UTC 2010


Author: mclasen

Update of /cvs/pkgs/rpms/gnome-themes/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv25974

Modified Files:
	gnome-themes.spec 
Log Message:
add some needed symlinks, split off a legacy subpackage



Index: gnome-themes.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-themes/devel/gnome-themes.spec,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -p -r1.160 -r1.161
--- gnome-themes.spec	16 May 2010 00:32:08 -0000	1.160
+++ gnome-themes.spec	24 May 2010 14:02:46 -0000	1.161
@@ -1,7 +1,7 @@
 Summary: Themes for GNOME
 Name: gnome-themes
 Version: 2.31.1
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://download.gnome.org/sources/gnome-themes/
 #VCS: git:git://git.gnome.org/gnome-themes
 Source: http://download.gnome.org/sources/gnome-themes/2.31/%{name}-%{version}.tar.bz2
@@ -32,6 +32,15 @@ The gnome-themes package contains a coll
 These themes can change the appearance of application widgets, icons, window
 borders, cursors, etc.
 
+%package legacy
+Summary: Old names for icons in gnome-themes
+Group: User Interface/Desktops
+Requires: %{name} = %{version}-%{release}
+
+%description legacy
+This package contains symlinks to make the icons in gnome-themes
+available under old names.
+
 %prep
 %setup -q
 %patch0 -p1 -b .indic-titlebars
@@ -55,14 +64,8 @@ tar xf %{SOURCE2}
 cp -R mist/* $RPM_BUILD_ROOT%{_datadir}/icons/Mist
 
 # add legacy symlinks
-for size in 16x16 22x22 24x24 32x32; do
-  for context in apps devices; do
-    (cd $RPM_BUILD_ROOT%{_datadir}/icons/Mist/$size
-     icon-name-mapping -c $context)
-  done
-done
-for size in 48x48 256x256; do
-  for context in apps devices actions places status; do
+for size in 16x16 22x22 24x24 32x32 48x48 256x256; do
+  for context in actions apps devices places status; do
     (cd $RPM_BUILD_ROOT%{_datadir}/icons/Mist/$size
      icon-name-mapping -c $context)
   done
@@ -184,7 +187,19 @@ for dir in $RPM_BUILD_ROOT%{_datadir}/ic
   touch $dir/icon-theme.cache
 done
 
-%find_lang %name
+(cd $RPM_BUILD_ROOT%{_datadir}
+ echo "%%defattr(-,root,root)"
+ find icons/Mist -name "gtk-\*" -or -not -type l -printf "%%%%{_datadir}/%%p\n"
+) > files.txt
+
+(cd $RPM_BUILD_ROOT%{_datadir}
+ echo "%%defattr(-,root,root)"
+ find icons/Mist -type l -and -not -name "gtk-\*" -printf "%%%%{_datadir}/%%p\n"
+) > legacy.txt
+
+%find_lang %{name}
+
+cat %{name}.lang >> files.txt
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -220,7 +235,7 @@ do
 done
 
 
-%files -f %{name}.lang
+%files -f files.txt
 %defattr(-,root,root)
 %{_datadir}/icons/Crux/
 %{_datadir}/icons/HighContrast/
@@ -229,7 +244,6 @@ done
 %{_datadir}/icons/HighContrastLargePrintInverse/
 %{_datadir}/icons/HighContrast-SVG/
 %{_datadir}/icons/LargePrint/
-%{_datadir}/icons/Mist/
 %ghost %{_datadir}/icons/*/icon-theme.cache
 
 # themes where the gtk theme is shipped with the engine
@@ -253,7 +267,14 @@ done
 
 %doc AUTHORS COPYING NEWS README
 
+%files legacy -f legacy.txt
+
+
 %changelog
+* Mon May 24 2010 Matthias Clasen <mclasen at redhat.com> 2.31.1-2
+- Create more symlinks
+- Split off a legacy subpackage
+
 * Sat May 15 2010 Matthias Clasen <mclasen at redhat.com> 2.31.1-1
 - Update to 2.31.1
 



More information about the scm-commits mailing list