summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-12-02 17:05:33 +0100
committerRemi Collet <fedora@famillecollet.com>2012-12-02 17:05:33 +0100
commitd4e85c8b43e5e3a702cac0be321cb285a39ff55c (patch)
tree8e3612efccbeedb370761ffcc14e142a7e51a8ab
parent2c7410910db016ded9609030a3db75b9ccad7b36 (diff)
memcached: test build without sasl
-rw-r--r--memcached.spec15
1 files changed, 13 insertions, 2 deletions
diff --git a/memcached.spec b/memcached.spec
index 319d2eb..6151da0 100644
--- a/memcached.spec
+++ b/memcached.spec
@@ -7,9 +7,11 @@
%global with_systemd 0
%endif
+%global with_sasl 0
+
Name: memcached
Version: 1.4.15
-Release: 2%{?dist}
+Release: 2%{?dist}.1
Epoch: 0
Summary: High Performance, Distributed Memory Object Cache
@@ -31,7 +33,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libevent-devel
BuildRequires: perl(Test::More), perl(Test::Harness)
+%if %{with_sasl}
BuildRequires: cyrus-sasl-devel
+%endif
%if %{with_systemd}
Requires(post): systemd
@@ -73,7 +77,11 @@ memcached binary include files.
%build
-%configure --enable-sasl
+%configure \
+%if %{with_sasl}
+ --enable-sasl
+%endif
+
sed -i 's/-Werror/ /' Makefile
make %{?_smp_mflags}
@@ -227,6 +235,9 @@ fi
%{_includedir}/memcached/*
%changelog
+* Sun Dec 2 2012 Remi Collet <rpms@famillecollet.com> - 0:1.4.15-2.1
+- build test without SASL
+
* Mon Nov 26 2012 Remi Collet <rpms@famillecollet.com> - 0:1.4.15-2
- enable SASL support