summaryrefslogtreecommitdiff
path: root/memcached.spec.in
diff options
context:
space:
mode:
authormiwasson <miwasson@cisco.com>2019-01-29 11:11:28 -0700
committerdormando <dormando@rydia.net>2019-04-26 23:33:25 -0700
commitaa78a38ced9112c0c57ac72317a09e7a6588cc71 (patch)
tree0ce84b9638950bf51d35ec82b548102280a81895 /memcached.spec.in
parentd2ba5a9bb3c6617d4d547501763195a17015d736 (diff)
downloadmemcached-aa78a38ced9112c0c57ac72317a09e7a6588cc71.tar.gz
Add optional feature support to RPM package building
Some optional features can now be enabled for RPM building using the rpmbuild conditional build parameters (--with and --without) For example, sasl can be enabled and code coverage disabled in the RPM with: rpmbuild --with sasl --without coverage -tb memcached-1.5.12.tar.gz
Diffstat (limited to 'memcached.spec.in')
-rw-r--r--memcached.spec.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/memcached.spec.in b/memcached.spec.in
index 12987c3..9d3295f 100644
--- a/memcached.spec.in
+++ b/memcached.spec.in
@@ -1,3 +1,14 @@
+%bcond_with arm_crc32
+%bcond_with extstore
+%bcond_with seccomp
+%bcond_with sasl
+%bcond_with sasl_pwdb
+%bcond_with dtrace
+%bcond_with 64bit
+%bcond_without option_checking
+%bcond_without coverage
+%bcond_without docs
+
# Set with_systemd on distros that use it, so we can install the service
# file, otherwise the sysvinit script will be installed
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
@@ -54,7 +65,17 @@ web applications by alleviating database load.
%build
-%configure
+%configure \
+ %{?with_arm_crc32:--enable-arm-crc32} \
+ %{?with_extstore:--enable-extstore} \
+ %{?with_seccomp:--enable-seccomp} \
+ %{?with_sasl:--enable-sasl} \
+ %{?with_sasl_pwdb:--enable-pwdb} \
+ %{?with_dtrace:--enable-dtrace} \
+ %{?with_64bit:--enable-64bit} \
+ %{!?with_option_checking:--disable-option-checking}
+ %{!?with_coverage:--disable-coverage} \
+ %{!?with_docs:--disable-docs}
make %{?_smp_mflags}