1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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)
This commit is contained in:
Amitay Isaacs 2013-07-04 15:14:10 +10:00
parent ae03a5e3ee
commit b169182ff2

View File

@ -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