From: Vincent Bernat Date: Mon, 23 Nov 2015 07:24:45 +0000 (+0100) Subject: redhat: correctly handle SLES too X-Git-Tag: 0.8.0~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7ce4668b5bc69465c19e2897162d9ab51b8872d;p=thirdparty%2Flldpd.git redhat: correctly handle SLES too --- 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