From 55453dd867d43f62873cff0b7402529e578f87b3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 6 Nov 2017 16:16:06 +0100 Subject: [PATCH] add build condition for seccomp support --- memcached.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/memcached.spec b/memcached.spec index e510ff7..4cf3ef2 100644 --- a/memcached.spec +++ b/memcached.spec @@ -1,6 +1,7 @@ %define username memcached %define groupname memcached %bcond_without sasl +%bcond_with seccomp Name: memcached Version: 1.5.3 @@ -20,6 +21,7 @@ BuildRequires: libevent-devel systemd-units BuildRequires: perl-generators BuildRequires: perl(Test::More), perl(Test::Harness) %{?with_sasl:BuildRequires: cyrus-sasl-devel} +%{?with_seccomp:BuildRequires: libseccomp-devel} Requires(post): systemd Requires(preun): systemd @@ -50,7 +52,8 @@ export CFLAGS="%{optflags} -pie -fpie" export LDFLAGS="-Wl,-z,relro,-z,now" %configure \ - %{?with_sasl: --enable-sasl} + %{?with_sasl: --enable-sasl} \ + %{?with_seccomp: --enable-seccomp} make %{?_smp_mflags}