From f7ce4668b5bc69465c19e2897162d9ab51b8872d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 23 Nov 2015 08:24:45 +0100 Subject: [PATCH] redhat: correctly handle SLES too --- redhat/lldpd.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index e6b41da3..908167c5 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -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 -- 2.39.5