From: Michael Friedrich Date: Wed, 6 Nov 2013 16:26:14 +0000 (+0100) Subject: Fix detection of sles/suse_version in spec file. X-Git-Tag: v0.0.4~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e9c527f5a0acc8ba43d77df0a98a8ed861489f3;p=icinga2 Fix detection of sles/suse_version in spec file. --- diff --git a/icinga2.spec b/icinga2.spec index c311807c6..a061c0cbc 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -85,7 +85,7 @@ Requires: boost-regex >= 1.41 %endif %if "%{_vendor}" == "suse" -%if 0%{?sles_version} == 11 +%if 0%{?sles_version} >= 1110 BuildRequires: libgfortran46 BuildRequires: boost-license%{sles_boost_version} BuildRequires: boost-devel >= 1.41 @@ -95,6 +95,7 @@ Requires: libboost_system%{sles_boost_version} Requires: libboost_test%{sles_boost_version} Requires: libboost_thread%{sles_boost_version} %else +%if 0%{?suse_version} >= 1210 BuildRequires: boost-devel >= 1.41 Requires: libboost_program_options%{opensuse_boost_version} Requires: libboost_system%{opensuse_boost_version} @@ -103,6 +104,7 @@ Requires: libboost_thread%{opensuse_boost_version} Requires: libboost_regex%{opensuse_boost_version} %endif %endif +%endif Requires: %{name}-common = %{version}