From cd66d751fd3e37ec4e25adbf13ce2a718ca4c673 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 27 Dec 2015 18:37:59 +0100 Subject: [PATCH] redhat: add a note about the spec file being tied to OBS --- redhat/lldpd.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 73e8127e..07d11cc5 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -1,4 +1,7 @@ -# configure options +# This .spec file is targeted for SuSE OBS. It relies on macro that +# are not available on regular distributions. If you use directly +# rpmbuild, be sure to use something like `--define 'rhel_version +# 700'`. # Conditional build options, disable with "--without xxx" %bcond_without xml @@ -36,8 +39,8 @@ %bcond_without system_libevent %endif -# On RHEL < 6, use embedded libnl -%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 600 || 0%{?centos_version} > 0 && 0%{?centos_version} < 600 || 0%{?suse_version} > 0 && 0%{?suse_version} < 1200 +# On RHEL < 7, use embedded libnl. +%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 700 || 0%{?centos_version} > 0 && 0%{?centos_version} < 600 || 0%{?suse_version} > 0 && 0%{?suse_version} < 1200 %bcond_with system_libnl %else %bcond_without system_libnl -- 2.47.3