]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame_incremental - libldb/libldb.nm
libldb: Switch to patchelf to remove the RPATH
[people/stevee/ipfire-3.x.git] / libldb / libldb.nm
... / ...
CommitLineData
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = libldb
7version = 2.6.1
8release = 2
9thisapp = ldb-%{version}
10
11groups = System/Libraries
12url = https://ldb.samba.org/
13license = LGPLv3+
14summary = A schema-less, ldap like, API and database
15
16description
17 An extensible library that implements an LDAP like API to access remote LDAP
18 servers, or use local tdb databases.
19end
20
21source_dl = https://download.samba.org/pub/ldb/
22
23build
24 requires
25 cmocka-devel
26 docbook-utils
27 docbook-xsl
28 libtalloc-devel >= 2.1.5
29 libtdb-devel >= 1.3.8
30 libtevent-devel >= 0.9.27
31 libtirpc-devel
32 libxcrypt-devel
33 lmdb-devel >= 0.9.16
34 patchelf
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 find %{BUILDROOT}%{bindir} -type f -executable \
56 -exec patchelf --remove-rpath {} \;
57 end
58end
59
60packages
61 package %{name}
62
63 package ldb-tools
64 summary = Tools to manage LDB files.
65 description
66 %{summary}
67 end
68
69 files
70 %{bindir}
71 %{libdir}/ldb/libldb-cmdline*
72 %{mandir}/man1/*
73 end
74 end
75
76 package %{name}-devel
77 template DEVEL
78 end
79
80 package python3-ldb
81 template PYTHON3
82
83 files += %{libdir}/libpyldb*
84 end
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
89end