]>
Commit | Line | Data |
---|---|---|
657b66a1 SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = libldb | |
51a6b62c | 7 | version = 2.6.1 |
3994a93e | 8 | release = 2 |
51a6b62c | 9 | thisapp = ldb-%{version} |
657b66a1 SS |
10 | |
11 | groups = System/Libraries | |
51a6b62c | 12 | url = https://ldb.samba.org/ |
657b66a1 | 13 | license = LGPLv3+ |
51a6b62c | 14 | summary = A schema-less, ldap like, API and database |
657b66a1 SS |
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 | ||
51a6b62c | 21 | source_dl = https://download.samba.org/pub/ldb/ |
657b66a1 SS |
22 | |
23 | build | |
24 | requires | |
51a6b62c | 25 | cmocka-devel |
657b66a1 SS |
26 | docbook-utils |
27 | docbook-xsl | |
9ace5b63 AM |
28 | libtalloc-devel >= 2.1.5 |
29 | libtdb-devel >= 1.3.8 | |
30 | libtevent-devel >= 0.9.27 | |
51a6b62c | 31 | libtirpc-devel |
8d32419a | 32 | libxcrypt-devel |
51a6b62c | 33 | lmdb-devel >= 0.9.16 |
3994a93e | 34 | patchelf |
657b66a1 | 35 | popt-devel |
51a6b62c MT |
36 | python3-devel |
37 | python3-talloc | |
38 | python3-tdb | |
39 | python3-tevent | |
657b66a1 SS |
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 | ||
51a6b62c MT |
49 | test |
50 | make check | |
51 | end | |
657b66a1 SS |
52 | |
53 | install_cmds | |
54 | # Remove rpath from binaries. | |
3994a93e SS |
55 | find %{BUILDROOT}%{bindir} -type f -executable \ |
56 | -exec patchelf --remove-rpath {} \; | |
657b66a1 SS |
57 | end |
58 | end | |
59 | ||
60 | packages | |
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 | ||
51a6b62c MT |
80 | package python3-ldb |
81 | template PYTHON3 | |
82 | ||
83 | files += %{libdir}/libpyldb* | |
657b66a1 SS |
84 | end |
85 | ||
86 | package %{name}-debuginfo | |
87 | template DEBUGINFO | |
88 | end | |
89 | end |