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}