]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: add a note about the spec file being tied to OBS
authorVincent Bernat <vincent@bernat.im>
Sun, 27 Dec 2015 17:37:59 +0000 (18:37 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 27 Dec 2015 17:37:59 +0000 (18:37 +0100)
redhat/lldpd.spec

index 73e8127e52bb01c961d571a54c0e24bf5f2c437f..07d11cc5b1c44b478f8b08aa678bd0ce74120143 100644 (file)
@@ -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