From abd543c7929c1312de9b63ee889a8c2dcb498122c5d6be23c1869bcd3ddb11af Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Tue, 22 Oct 2013 09:27:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=26 --- nemo.spec | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/nemo.spec b/nemo.spec index 9946a23..03dd702 100644 --- a/nemo.spec +++ b/nemo.spec @@ -18,17 +18,8 @@ # wise detect Tumbleweed %define gnome_common_ver %(gnome-doc-common --version | sed "s/[^0-9]*3\.\([0-9]*\)\.[0-9]*/\1/") -if [ %{gnome_common_ver} -le 6 ] ; then -%define tumbleweed_above 0 -else -%define tumbleweed_above 1 -fi - -if [ 0%{gnome_common_ver} -eq 10 ] ; then -%define is_gnome10 1 -else -%define is_gnome10 0 -fi +#%define tumbleweed_above %(if [ %{gnome_common_ver} -le 6 ] ; then 0; else 1; fi) +#%define is_gnome10 %(if [ 0%{gnome_common_ver} -eq 10 ] ; then 1; else 0; fi) Name: nemo Version: 2.0.1 @@ -65,7 +56,7 @@ BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(polkit-agent-1) # wise detect Tumbleweed -%if %{tumbleweed_above} +%if %{gnome_common_ver} -le 6 BuildRequires: pkgconfig(tracker-sparql-0.16) %else BuildRequires: pkgconfig(tracker-sparql-0.14) @@ -112,7 +103,7 @@ This package provides the GObject Introspection bindings for Nemo. %setup -q %patch0 -p1 %patch1 -p1 -%if %{is_gnome10} +%if %{gnome_common_ver} -eq 10 %patch2 -p1 %endif