]> granicus.if.org Git - icinga2/commitdiff
Fix detection of sles/suse_version in spec file.
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 6 Nov 2013 16:26:14 +0000 (17:26 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 6 Nov 2013 16:26:14 +0000 (17:26 +0100)
icinga2.spec

index c311807c6f84e38e4b2e3e361cca81e2ae557a29..a061c0cbce9797a9f3993f335c4d10b22ce03b74 100644 (file)
@@ -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}