From 0e9c527f5a0acc8ba43d77df0a98a8ed861489f3 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 6 Nov 2013 17:26:14 +0100 Subject: [PATCH] Fix detection of sles/suse_version in spec file. --- icinga2.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} -- 2.40.0