]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: correctly handle SLES too
authorVincent Bernat <vincent@bernat.im>
Mon, 23 Nov 2015 07:24:45 +0000 (08:24 +0100)
committerVincent Bernat <vincent@bernat.im>
Mon, 23 Nov 2015 07:24:45 +0000 (08:24 +0100)
redhat/lldpd.spec

index e6b41da36d96b1433e833874c0c474fc9a2af0ad..908167c54e0ae10a6f9afea425479569edea6dde 100644 (file)
@@ -26,6 +26,7 @@
 %endif
 
 # On RHEL <= 6, compile with oldies
+# For SuSE, SLE11 with a recent SP comes with 3.0. SLE12 comes with 3.12.
 %if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 700 || 0%{?centos_version} > 0 && 0%{?centos_version} < 700
 %bcond_without oldies
 %else
@@ -33,7 +34,8 @@
 %endif
 
 # On RHEL < 7, disable systemd
-%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 700 || 0%{?centos_version} > 0 && 0%{?centos_version} < 700
+# On SuSE < 12, disable systemd
+%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 700 || 0%{?centos_version} > 0 && 0%{?centos_version} < 700 || 0%{?suse_version} > 0 && 0%{?suse_version} < 1200
 %bcond_with systemd
 %else
 %bcond_without systemd