[zukitwo] Package the GNOME Shell theme only for Fedora up to 17

odysseus odysseus at fedoraproject.org
Sun Nov 4 17:44:27 UTC 2012


commit 4b7b300a5a3e439ee86e9a4ec48ef878e26bfb79
Author: Mattia Meneguzzo <odysseus at fedoraproject.org>
Date:   Sun Nov 4 18:44:16 2012 +0100

    Package the GNOME Shell theme only for Fedora up to 17

 zukitwo.spec |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/zukitwo.spec b/zukitwo.spec
index 19e3342..a706552 100644
--- a/zukitwo.spec
+++ b/zukitwo.spec
@@ -5,7 +5,7 @@
 
 Name:           zukitwo
 Version:        20120817
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Themes for GTK+2, GTK+3, Metacity, GNOME Shell and Xfwm4
 Group:          User Interface/Desktops
 
@@ -61,6 +61,7 @@ Requires:       %{name}-common = %{version}-%{release}, metacity
 Themes for Metacity as part of the %{theme_name} theme.
 
 
+%if 0%{?fedora} < 18
 %package -n gnome-shell-theme-%{name}
 Summary:        %{theme_name} GNOME Shell theme
 Group:          User Interface/Desktops
@@ -68,6 +69,7 @@ Requires:       %{name}-common = %{version}-%{release}, gnome-shell-extension-us
 
 %description -n gnome-shell-theme-%{name}
 %{theme_name} GNOME Shell theme.
+%endif
 
 
 %package xfwm4-theme
@@ -107,6 +109,12 @@ done
 mkdir -p -m755 %{buildroot}%{_datadir}/themes/%{theme_name}/gnome-shell
 cp -pr %{theme_name}-Shell/gnome-shell/* %{buildroot}%{_datadir}/themes/%{theme_name}/gnome-shell
 ln -sfn %{_datadir}/themes/%{theme_name}/gnome-shell %{buildroot}%{_datadir}/themes/%{theme_name}-Dark/gnome-shell
+%if 0%{?fedora} > 17
+        for theme_dir in %{theme_name} %{theme_name}-Dark
+        do
+                rm -rf %{buildroot}%{_datadir}/themes/$theme_dir/gnome-shell
+        done
+%endif
 
 
 %files common
@@ -130,9 +138,11 @@ ln -sfn %{_datadir}/themes/%{theme_name}/gnome-shell %{buildroot}%{_datadir}/the
 %{_datadir}/themes/%{theme_name}-Dark/metacity-1/
 
 
+%if 0%{?fedora} < 18
 %files -n gnome-shell-theme-%{name}
 %{_datadir}/themes/%{theme_name}/gnome-shell/
 %{_datadir}/themes/%{theme_name}-Dark/gnome-shell
+%endif
 
 
 %files xfwm4-theme
@@ -141,6 +151,9 @@ ln -sfn %{_datadir}/themes/%{theme_name}/gnome-shell %{buildroot}%{_datadir}/the
 
 
 %changelog
+* Sun Nov 04 2012 Mattia Meneguzzo <odysseus at fedoraproject.org> - 20120817-2
+- Package the GNOME Shell theme only for Fedora up to 17
+
 * Fri Aug 17 2012 Mattia Meneguzzo <odysseus at fedoraproject.org> - 20120817-1
 - Update to latest upstream version
 


More information about the scm-commits mailing list