summaryrefslogtreecommitdiff
path: root/ctdb/packaging
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-07-04 15:14:10 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-07-04 20:41:51 +1000
commitb169182ff29fcd363e2d34c7169178aa3423e746 (patch)
tree34fe0559027a4108a0a5f9073577b349ac27ac55 /ctdb/packaging
parentae03a5e3eeab23a45a6fced1db870d65fafc59eb (diff)
downloadsamba-b169182ff29fcd363e2d34c7169178aa3423e746.tar.gz
packaging: Allow building RPMs with system tdb/talloc/tevent
To build CTDB RPMs with system installed libraries, use following command: ./packaging/RPM/makerpms.sh \ --with system_talloc \ --with system_tdb \ --with system_tevent Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit bb54f3924ff19cd089b0a166fe8368db162ad709)
Diffstat (limited to 'ctdb/packaging')
-rw-r--r--ctdb/packaging/RPM/ctdb.spec.in15
1 files changed, 9 insertions, 6 deletions
diff --git a/ctdb/packaging/RPM/ctdb.spec.in b/ctdb/packaging/RPM/ctdb.spec.in
index bcd38b14409..19c006f7f7f 100644
--- a/ctdb/packaging/RPM/ctdb.spec.in
+++ b/ctdb/packaging/RPM/ctdb.spec.in
@@ -24,13 +24,16 @@ Provides: ctdb = %{version}
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-root
-# Always use the bundled versions of these libraries.
-%define with_included_talloc 1
-%define with_included_tdb 1
-%define with_included_tevent 1
+# Allow build with system libraries
+# To enable, run rpmbuild with,
+# "--with system_talloc"
+# "--with system_tdb"
+# "--with system_tevent"
+%define with_included_talloc %{?_with_system_talloc: 0} %{?!_with_system_talloc: 1}
+%define with_included_tdb %{?_with_system_tdb: 0} %{?!_with_system_tdb: 1}
+%define with_included_tevent %{?_with_system_tevent: 0} %{?!_with_system_tevent: 1}
-# If the above options are changed then mandate minimum system
-# versions.
+# Required minimum library versions when building with system libraries
%define libtalloc_version 2.0.8
%define libtdb_version 1.2.11
%define libtevent_version 0.9.18