diff --git a/nemo.spec b/nemo.spec index aff52a0..3b7b462 100644 --- a/nemo.spec +++ b/nemo.spec @@ -17,7 +17,7 @@ # # wise detect Tumbleweed -%{!?gnome_common_ver %global gnome_common_ver %(gnome-doc-common --version | sed -ne 's/.* \([0-9.]*\).*/\1/p')} +%{!?gnome_common_ver %global gnome_common_ver %(gnome-doc-common --version | sed -ne 's/.* [0-9]*.\([0-9]\)*.[0-9].*/\1/p')} Name: nemo Version: 2.0.1 @@ -54,10 +54,9 @@ BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libselinux) BuildRequires: pkgconfig(libxml-2.0) # wise detect Tumbleweed -%if 0%{?gnome_common_ver} <= 3.6.0 +%if 0%{?gnome_common_ver} <= 6 BuildRequires: pkgconfig(tracker-sparql-0.14) -%endif -%if 0%{?gnome_common_ver} >= 3.7.0 +%else BuildRequires: pkgconfig(tracker-sparql-0.16) %endif BuildRequires: pkgconfig(x11)