SHA256
1
0
forked from pool/nemo
Marguerite Su 2013-10-22 07:49:16 +00:00 committed by Git OBS Bridge
parent 62019d5358
commit 4c9ff35880

View File

@ -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