[mate-themes/f20] remove all themes which doesn't support GTK3

Wolfgang Ulbrich raveit65 at fedoraproject.org
Tue Oct 21 17:57:11 UTC 2014


commit f96fd762a0700708ae79605c555c6e5c20f5275c
Author: raveit65 <chat-to-me at raveit.de>
Date:   Tue Oct 21 19:57:07 2014 +0200

    remove all themes which doesn't support GTK3

 mate-themes.spec |   65 ++++++++++++++++++++++++++++-------------------------
 1 files changed, 34 insertions(+), 31 deletions(-)
---
diff --git a/mate-themes.spec b/mate-themes.spec
index 162f328..a7b6089 100644
--- a/mate-themes.spec
+++ b/mate-themes.spec
@@ -55,10 +55,9 @@ MATE Desktop themes
 #NOCONFIGURE=1 ./autogen.sh
 
 %build
-%configure --enable-all-themes   \
-           --enable-test-themes  \
-           --enable-icon-mapping \
-           --enable-test-themes
+%configure --enable-test-themes  \
+           --enable-icon-mapping
+
 make %{?_smp_mflags} V=1
 
 
@@ -70,11 +69,36 @@ find %{buildroot} -name '*.a' -exec rm -rf {} ';'
 
 %find_lang %{name} --with-gnome --all-name
 
+# needed icons for ContrastHigh
+mkdir -p %{buildroot}%{_datadir}/themes/ContrastHigh/pixmaps
+cp -rf %{buildroot}%{_datadir}/themes/ContrastHighLargePrint/* \
+%{buildroot}%{_datadir}/themes/ContrastHigh/
+sed -i -e 's/^pixmap_path "\/usr\/share\/themes\/ContrastHighLargePrint\/pixmaps"/pixmap_path "\/usr\/share\/themes\/ContrastHigh\/pixmaps"/' %{buildroot}%{_datadir}/themes/ContrastHigh/gtk-2.0/gtkrc
+
+# clean up package
+rm -rf %{buildroot}%{_datadir}/themes/PrintLarge/
+rm -rf %{buildroot}%{_datadir}/themes/Quid/
+rm -rf %{buildroot}%{_datadir}/themes/Fog/
+rm -rf %{buildroot}%{_datadir}/themes/Reverse/
+rm -rf %{buildroot}%{_datadir}/themes/Simply/
+rm -rf %{buildroot}%{_datadir}/themes/ContrastHighLargePrint/
+rm -rf %{buildroot}%{_datadir}/themes/ContrastHighLargePrintInverse/
+rm -rf %{buildroot}%{_datadir}/themes/ContrastLowLargePrint/
+rm -rf %{buildroot}%{_datadir}/themes/ContrastLow/
+rm -rf %{buildroot}%{_datadir}/themes/ContrastHighInverse/
+rm -rf %{buildroot}%{_datadir}/icons/ContrastHighInverse/
+rm -rf %{buildroot}%{_datadir}/icons/ContrastHighLargePrintInverse/
+rm -rf %{buildroot}%{_datadir}/icons/ContrastHigh-SVG/
+rm -rf %{buildroot}%{_datadir}/icons/MateLargePrint/
+rm -rf %{buildroot}%{_datadir}/icons/Quid/
+rm -rf %{buildroot}%{_datadir}/icons/Fog/
+rm -rf %{buildroot}%{_datadir}/themes/AlaDelta/
+rm -rf %{buildroot}%{_datadir}/themes/Atantla/
+
+
 %post
 for icon_theme in \
-  Fog Quid \
-  ContrastHighLargePrint ContrastHighLargePrintInverse \
-  ContrastHigh-SVG ;
+  Fog ;
 do
   /bin/touch --no-create %{_datadir}/icons/${icon_theme} &> /dev/null || :
 done
@@ -82,9 +106,7 @@ done
 %postun
 if [ $1 -eq 0 ]; then
 for icon_theme in \
-  Fog Quid \
-  ContrastHighLargePrint ContrastHighLargePrintInverse \
-  ContrastHigh-SVG ;
+  Fog ;
 do
   /bin/touch --no-create %{_datadir}/icons/${icon_theme} &> /dev/null || :
   /usr/bin/gtk-update-icon-cache %{_datadir}/icons/${icon_theme} &> /dev/null || :
@@ -93,9 +115,7 @@ fi
 
 %posttrans
 for icon_theme in \
-  Fog Quid \
-  ContrastHighLargePrint ContrastHighLargePrintInverse \
-  ContrastHigh-SVG ;
+  Fog ;
 do
   /usr/bin/gtk-update-icon-cache %{_datadir}/icons/${icon_theme} &> /dev/null || :
 done
@@ -108,37 +128,20 @@ done
 %{_datadir}/themes/BlueMenta/
 %{_datadir}/themes/BlackMenta/
 %{_datadir}/themes/BlackMATE/
-%{_datadir}/themes/Fog/
-%{_datadir}/themes/PrintLarge/
-%{_datadir}/themes/Quid/
-%{_datadir}/themes/Reverse/
 %{_datadir}/themes/Shiny/
-%{_datadir}/themes/Simply/
 %{_datadir}/themes/TraditionalOk/
 %{_datadir}/themes/TraditionalGreen/
 %{_datadir}/themes/TraditionalOkTest/
-%{_datadir}/themes/ContrastHighLargePrint/
-%{_datadir}/themes/ContrastHighLargePrintInverse/
-%{_datadir}/themes/ContrastLowLargePrint/
-%{_datadir}/themes/ContrastLow/
 %{_datadir}/themes/ContrastHigh/
-%{_datadir}/themes/ContrastHighInverse/
 %{_datadir}/icons/ContrastHigh/
-%{_datadir}/icons/ContrastHighInverse/
 %{_datadir}/icons/ContrastHighLargePrint/
-%{_datadir}/icons/ContrastHighLargePrintInverse/
-%{_datadir}/icons/ContrastHigh-SVG/
-%{_datadir}/icons/Fog/
-%{_datadir}/icons/MateLargePrint/
-%{_datadir}/icons/Quid/
-%{_datadir}/themes/AlaDelta/
-%{_datadir}/themes/Atantla/
 %{_datadir}/icons/mate/cursors/
 
 
 %changelog
 * Tue Oct 21 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.9.1-1
 - update to 1.9.1 release for GTK3-3.10
+- remove all themes which doesn't support GTK3
 
 * Sat Jul 19 2014 Wolfgang Ulbrich <chat-to-me at raveit.de> - 1.8.2-0.1.git21d58f8
 - update to git snapshot from 2014-06-22


More information about the scm-commits mailing list