commit c10ecd7cf1a3ef381c18a781716963a6d4f14b73
Author: Jan Palus <[email protected]>
Date:   Wed Nov 6 20:53:22 2024 +0100

    bring back lmdb bcond from ldb.spec

 samba.spec | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/samba.spec b/samba.spec
index 99fba72..0077159 100644
--- a/samba.spec
+++ b/samba.spec
@@ -25,6 +25,7 @@
 %bcond_without ctdb_pcp        # Performance Co-Pilot support for CTDB
 # turn on when https://bugzilla.samba.org/show_bug.cgi?id=11764 is fixed
 %bcond_with    replace
+%bcond_without lmdb            # LMDB module in ldb (64-bit only)
 
 %define                ver             4.21.1
 %define                rel             1
@@ -42,6 +43,10 @@
 %undefine      with_dmapi
 %endif
 
+%ifnarch %{x8664} aarch64 alpha mips64 ppc64 s390x sparc64
+# lmdb support requires 64-bit size_t
+%undefine      with_lmdb
+%endif
 
 # NOTE: packages order is: server + additions, common, clients, libs+devel, 
ldap
 Summary:       Samba Active Directory and SMB server
@@ -119,7 +124,7 @@ BuildRequires:      libtirpc-devel
 BuildRequires: libunwind-devel
 BuildRequires: liburing-devel
 BuildRequires: libxslt-progs
-BuildRequires: lmdb-devel >= 0.9.16
+%{?with_lmdb:BuildRequires:    lmdb-devel >= 0.9.16}
 %{?with_lttng:BuildRequires:   lttng-ust-devel}
 BuildRequires: make >= 1:3.81
 BuildRequires: ncurses-devel >= 5.2
@@ -569,7 +574,7 @@ Summary(pl.UTF-8):  Wbudowana baza danych podobna do LDAP
 Version:       %{ldb_ver}
 Release:       %{ldb_rel}
 Group:         Libraries
-Requires:      lmdb-libs >= 0.9.16
+%{?with_lmdb:Requires: lmdb-libs >= 0.9.16}
 Requires:      talloc >= %{talloc_ver}
 Requires:      tdb >= %{tdb_ver}
 Requires:      tevent >= %{tevent_ver}
@@ -1923,7 +1928,7 @@ fi
 %attr(755,root,root) %{_libdir}/samba/libldb-key-value-private-samba.so
 %attr(755,root,root) %{_libdir}/samba/libldb-tdb-err-map-private-samba.so
 %attr(755,root,root) %{_libdir}/samba/libldb-tdb-int-private-samba.so
-%attr(755,root,root) %{_libdir}/samba/libldb-mdb-int-private-samba.so
+%{?with_lmdb:%attr(755,root,root) 
%{_libdir}/samba/libldb-mdb-int-private-samba.so}
 %dir %{_libdir}/samba/ldb
 %attr(755,root,root) %{_libdir}/samba/ldb/*.so
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/c10ecd7cf1a3ef381c18a781716963a6d4f14b73

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to