[samba] Make it possible to build without clustering with rpmbuild.

asn asn at fedoraproject.org
Mon Aug 25 10:52:56 UTC 2014


commit 5aa668344be4fdecfc16141c211de7dc6fe416e4
Author: Andreas Schneider <asn at redhat.com>
Date:   Fri Aug 22 10:23:06 2014 +0200

    Make it possible to build without clustering with rpmbuild.

 samba.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/samba.spec b/samba.spec
index cb1b6c6..a0cccc1 100644
--- a/samba.spec
+++ b/samba.spec
@@ -1,5 +1,10 @@
-# Set --with testsuite or %bcond_without to run the Samba torture testsuite.
+# rpmbuild --rebuild --with testsuite --without clustering samba.src.rpm
+#
+# The testsuite is disabled by default. Set --with testsuite or %bcond_without
+# to run the Samba torture testsuite.
 %bcond_with testsuite
+# ctdb is enabled by default, you can disable it with: --without clustering
+%bcond_without clustering
 
 %define main_release 1
 
@@ -47,7 +52,11 @@
 %global with_dc 1
 %endif
 
+%global with_clustering_support 0
+
+%if %{with clustering}
 %global with_clustering_support 1
+%endif
 
 %{!?python_libdir: %define python_libdir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1,1)")}
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}


More information about the scm-commits mailing list