From 76bbbc310eca15dd5b8490a8fafc495faf3327100dd151a8eee7305678b7b1e1 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 15 Oct 2015 23:25:07 +0000 Subject: [PATCH] - only use network namespace support on distros newer than 13.2 OBS-URL: https://build.opensuse.org/package/show/server:http/haproxy?expand=0&rev=118 --- haproxy.changes | 5 +++++ haproxy.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/haproxy.changes b/haproxy.changes index 8c8ba3c..6088230 100644 --- a/haproxy.changes +++ b/haproxy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Oct 15 23:19:33 UTC 2015 - mrueckert@suse.de + +- only use network namespace support on distros newer than 13.2 + ------------------------------------------------------------------- Tue Oct 13 19:39:12 UTC 2015 - mrueckert@suse.de diff --git a/haproxy.spec b/haproxy.spec index 824323b..87214c6 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -21,8 +21,10 @@ %if 0%{?suse_version} > 1320 %bcond_without lua +%bcond_without network_namespace %else %bcond_with lua +%bcond_with network_namespace %endif %if 0%{?suse_version} >= 1310 @@ -135,7 +137,9 @@ the most work done from every CPU cycle. %if %{with tcp_fast_open} USE_TFO=1 \ %endif + %if %{with network_namespace} USE_NS=1 \ + %endif LIB="%{_lib}" \ PREFIX="%{_prefix}" \ DEBUG_CFLAGS="%{optflags}"