]> git.ipfire.org Git - ipfire-3.x.git/blob - libldb/libldb.nm
8567546a8f0a5fb41fdb31879ce4a6e52a8afc9f
[ipfire-3.x.git] / libldb / libldb.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libldb
7 version = 2.6.1
8 release = 1.1
9 thisapp = ldb-%{version}
10
11 groups = System/Libraries
12 url = https://ldb.samba.org/
13 license = LGPLv3+
14 summary = A schema-less, ldap like, API and database
15
16 description
17 An extensible library that implements an LDAP like API to access remote LDAP
18 servers, or use local tdb databases.
19 end
20
21 source_dl = https://download.samba.org/pub/ldb/
22
23 build
24 requires
25 chrpath
26 cmocka-devel
27 docbook-utils
28 docbook-xsl
29 libtalloc-devel >= 2.1.5
30 libtdb-devel >= 1.3.8
31 libtevent-devel >= 0.9.27
32 libtirpc-devel
33 libxcrypt-devel
34 lmdb-devel >= 0.9.16
35 popt-devel
36 python3-devel
37 python3-talloc
38 python3-tdb
39 python3-tevent
40 end
41
42 configure_options += \
43 --disable-rpath \
44 --disable-rpath-install \
45 --bundled-libraries=NONE \
46 --with-modulesdir=%{libdir}/ldb/modules \
47 --with-privatelibdir=%{libdir}/ldb
48
49 test
50 make check
51 end
52
53 install_cmds
54 # Remove rpath from binaries.
55 chrpath --delete %{BUILDROOT}%{bindir}/*
56 end
57 end
58
59 packages
60 package %{name}
61
62 package ldb-tools
63 summary = Tools to manage LDB files.
64 description
65 %{summary}
66 end
67
68 files
69 %{bindir}
70 %{libdir}/ldb/libldb-cmdline*
71 %{mandir}/man1/*
72 end
73 end
74
75 package %{name}-devel
76 template DEVEL
77 end
78
79 package python3-ldb
80 template PYTHON3
81
82 files += %{libdir}/libpyldb*
83 end
84
85 package %{name}-debuginfo
86 template DEBUGINFO
87 end
88 end