Marguerite Su 2013-10-22 09:27:07 +00:00 committed by Git OBS Bridge
parent 4c9ff35880
commit abd543c792

View File

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