From 2c05fc267437a5de1df2a155b9b918ca4cda5070af9fcc55004d4323f81af506 Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Tue, 22 Oct 2013 07:49:16 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/nemo?expand=0&rev=25 --- nemo.spec | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/nemo.spec b/nemo.spec index 213a455..9946a23 100644 --- a/nemo.spec +++ b/nemo.spec @@ -18,6 +18,17 @@ # 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 Name: nemo Version: 2.0.1 @@ -54,10 +65,10 @@ BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(polkit-agent-1) # wise detect Tumbleweed -%if %{gnome_common_ver} <= 6 -BuildRequires: pkgconfig(tracker-sparql-0.14) -%else +%if %{tumbleweed_above} BuildRequires: pkgconfig(tracker-sparql-0.16) +%else +BuildRequires: pkgconfig(tracker-sparql-0.14) %endif BuildRequires: pkgconfig(x11) Recommends: cinnamon-translations @@ -101,7 +112,7 @@ This package provides the GObject Introspection bindings for Nemo. %setup -q %patch0 -p1 %patch1 -p1 -%if %{gnome_common_ver} == 10 +%if %{is_gnome10} %patch2 -p1 %endif