From: Vincent Bernat Date: Sun, 27 Dec 2015 17:37:59 +0000 (+0100) Subject: redhat: add a note about the spec file being tied to OBS X-Git-Tag: 0.8.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd66d751fd3e37ec4e25adbf13ce2a718ca4c673;p=thirdparty%2Flldpd.git redhat: add a note about the spec file being tied to OBS --- 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