]> git.pld-linux.org Git - packages/ldb.git/blame - ldb.spec
up to 2.9.0
[packages/ldb.git] / ldb.spec
CommitLineData
22b39529 1#
e0d50568
JB
2# Conditional build:
3%bcond_without lmdb # LMDB module (64-bit only)
e0d50568
JB
4#
5%ifnarch %{x8664} aarch64 alpha mips64 ppc64 s390x sparc64
22b39529 6# lmdb support requires 64-bit size_t
e0d50568 7%undefine with_lmdb
22b39529 8%endif
79855137
JP
9%define talloc_version 2:2.4.2
10%define tdb_version 2:1.4.10
11%define tevent_version 0.16.1
9c196e2c
JB
12Summary: LDAP-like embedded database
13Summary(pl.UTF-8): Wbudowana baza danych podobna do LDAP
cd178619 14Name: ldb
79855137 15Version: 2.9.0
05495318 16Release: 1
2a1bfbb9 17License: LGPL v3+
56acf5d3 18Group: Libraries
de67fb3a 19Source0: https://download.samba.org/pub/ldb/%{name}-%{version}.tar.gz
79855137 20# Source0-md5: 8cf181c7a5b3ceeaee421f77d0073254
48c72eca 21URL: https://ldb.samba.org/
b3d015f4 22BuildRequires: cmocka-devel >= 1.1.3
2a1bfbb9 23BuildRequires: docbook-style-xsl
997f0942 24BuildRequires: docbook-style-xsl-nons
74bbb006 25BuildRequires: libbsd-devel
e0d50568 26BuildRequires: libxslt-progs
22b39529 27%{?with_lmdb:BuildRequires: lmdb-devel >= 0.9.16}
31ad34c3 28BuildRequires: openldap-devel
6cc4c977 29BuildRequires: pkgconfig
074f9f52 30BuildRequires: popt-devel >= 1.6
bf957a46 31BuildRequires: python3-devel >= 1:3.6
ddbfa503 32BuildRequires: python3-modules >= 1:3.6
e0d50568
JB
33BuildRequires: python3-talloc-devel >= %{talloc_version}
34BuildRequires: python3-tdb >= %{tdb_version}
35BuildRequires: python3-tevent >= %{tevent_version}
23ee5a82 36BuildRequires: rpmbuild(macros) >= 1.704
9c196e2c 37BuildRequires: talloc-devel >= %{talloc_version}
2a1bfbb9
ER
38BuildRequires: tdb-devel >= %{tdb_version}
39BuildRequires: tevent-devel >= %{tevent_version}
82c5ae93 40%{?with_lmdb:Requires: lmdb-libs >= 0.9.16}
9c196e2c 41Requires: talloc >= %{talloc_version}
2a1bfbb9
ER
42Requires: tdb >= %{tdb_version}
43Requires: tevent >= %{tevent_version}
074f9f52 44Requires: popt >= 1.6
cd178619
ER
45Provides: libldb = %{version}-%{release}
46Obsoletes: libldb < 1.1.0-3
23ee5a82 47# ldb 1.6+ dropped python2 support
5d02873c
JB
48Obsoletes: python-ldb < 1.6
49Obsoletes: python-ldb-devel < 1.6
2a1bfbb9
ER
50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53An extensible library that implements an LDAP like API to access
54remote LDAP servers, or use local tdb databases.
55
9c196e2c
JB
56%description -l pl.UTF-8
57Rozszerzalna biblioteka implementująca API podobne do LDAP pozwalające
58na dostęp do zdalnych serwerów LDAP lub wykorzystanie lokalnych baz
59danych tdb.
60
cd178619 61%package tools
2a1bfbb9 62Summary: Tools to manage LDB files
9c196e2c
JB
63Summary(pl.UTF-8): Narzędzia do zarządzania plikami LDB
64Group: Applications/Databases
2a1bfbb9
ER
65Requires: %{name} = %{version}-%{release}
66
cd178619 67%description tools
2a1bfbb9
ER
68Tools to manage LDB files.
69
9c196e2c
JB
70%description tools -l pl.UTF-8
71Narzędzia do zarządzania plikami LDB.
72
2a1bfbb9 73%package devel
9c196e2c
JB
74Summary: Header files for the LDB library
75Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LDB
2a1bfbb9
ER
76Group: Development/Libraries
77Requires: %{name} = %{version}-%{release}
9c196e2c 78Requires: talloc-devel >= %{talloc_version}
2a1bfbb9
ER
79Requires: tdb-devel >= %{tdb_version}
80Requires: tevent-devel >= %{tevent_version}
cd178619
ER
81Provides: libldb-devel = %{version}-%{release}
82Obsoletes: libldb-devel < 1.1.0-3
2a1bfbb9
ER
83
84%description devel
85Header files needed to develop programs that link against the LDB
86library.
87
9c196e2c
JB
88%description devel -l pl.UTF-8
89Pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących
90bibliotekę LDB.
91
e0d50568
JB
92%package -n python3-ldb
93Summary: Python 3 bindings for the LDB library
94Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki LDB
95Group: Libraries/Python
96Requires: %{name} = %{version}-%{release}
97Requires: python3-tdb >= %{tdb_version}
5d02873c 98Obsoletes: pyldb < 1.1.0-1
e0d50568
JB
99
100%description -n python3-ldb
101Python 3 bindings for the LDB library.
102
103%description -n python3-ldb -l pl.UTF-8
104Wiązania Pythona 3 do biblioteki LDB.
105
106%package -n python3-ldb-devel
107Summary: Development files for the Python 3 bindings for the LDB library
108Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona 3 do biblioteki LDB
109Group: Development/Libraries
110Requires: python3-ldb = %{version}-%{release}
111
112%description -n python3-ldb-devel
113Development files for the Python 3 bindings for the LDB library.
114
115%description -n python3-ldb-devel -l pl.UTF-8
116Pliki programistyczne wiązań Pythona 3 do biblioteki LDB.
2a1bfbb9
ER
117
118%prep
cd178619 119%setup -q
2a1bfbb9
ER
120
121%build
2a1bfbb9
ER
122CC="%{__cc}" \
123CFLAGS="%{rpmcflags}" \
2a1bfbb9
ER
124./configure \
125 --prefix=%{_prefix} \
126 --libdir=%{_libdir} \
127 --with-modulesdir=%{_libdir}/ldb/modules \
128 --with-privatelibdir=%{_libdir}/ldb \
129 --bundled-libraries=NONE \
130 --disable-rpath \
bc22b6e6 131 --disable-rpath-install
2a1bfbb9
ER
132
133%{__make} \
134 V=1
135
136%install
137rm -rf $RPM_BUILD_ROOT
138%{__make} install \
139 DESTDIR=$RPM_BUILD_ROOT
140
e0d50568
JB
141%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
142%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
e0d50568 143
2a1bfbb9
ER
144# Shared libraries need to be marked executable for
145# rpmbuild to strip them and include them in debuginfo
88ce4cc5 146find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} ';'
2a1bfbb9
ER
147
148%clean
149rm -rf $RPM_BUILD_ROOT
150
151%post -p /sbin/ldconfig
152%postun -p /sbin/ldconfig
153
e0d50568
JB
154%post -n python3-ldb -p /sbin/ldconfig
155%postun -n python3-ldb -p /sbin/ldconfig
156
2a1bfbb9
ER
157%files
158%defattr(644,root,root,755)
97bd97ed 159%attr(755,root,root) %{_libdir}/libldb.so.*.*.*
bc22b6e6 160%attr(755,root,root) %ghost %{_libdir}/libldb.so.2
2a1bfbb9 161%dir %{_libdir}/ldb
793121f1 162%attr(755,root,root) %{_libdir}/ldb/libldb-key-value.so
e7bf297e
AG
163%attr(755,root,root) %{_libdir}/ldb/libldb-tdb-err-map.so
164%attr(755,root,root) %{_libdir}/ldb/libldb-tdb-int.so
22b39529 165%{?with_lmdb:%attr(755,root,root) %{_libdir}/ldb/libldb-mdb-int.so}
2a1bfbb9
ER
166%dir %{_libdir}/ldb/modules
167%dir %{_libdir}/ldb/modules/ldb
9c196e2c 168%attr(755,root,root) %{_libdir}/ldb/modules/ldb/*.so
2a1bfbb9 169
9c196e2c 170%files tools
2a1bfbb9
ER
171%defattr(644,root,root,755)
172%attr(755,root,root) %{_bindir}/ldbadd
173%attr(755,root,root) %{_bindir}/ldbdel
174%attr(755,root,root) %{_bindir}/ldbedit
175%attr(755,root,root) %{_bindir}/ldbmodify
176%attr(755,root,root) %{_bindir}/ldbrename
177%attr(755,root,root) %{_bindir}/ldbsearch
9c196e2c
JB
178%attr(755,root,root) %{_libdir}/ldb/libldb-cmdline.so
179%{_mandir}/man1/ldbadd.1*
180%{_mandir}/man1/ldbdel.1*
181%{_mandir}/man1/ldbedit.1*
182%{_mandir}/man1/ldbmodify.1*
183%{_mandir}/man1/ldbrename.1*
184%{_mandir}/man1/ldbsearch.1*
2a1bfbb9
ER
185
186%files devel
187%defattr(644,root,root,755)
9c196e2c 188%attr(755,root,root) %{_libdir}/libldb.so
2a1bfbb9
ER
189%{_includedir}/ldb_module.h
190%{_includedir}/ldb_handlers.h
191%{_includedir}/ldb_errors.h
192%{_includedir}/ldb_version.h
193%{_includedir}/ldb.h
2a1bfbb9
ER
194%{_pkgconfigdir}/ldb.pc
195%{_mandir}/man3/ldb.3*
196
e0d50568
JB
197%files -n python3-ldb
198%defattr(644,root,root,755)
199%attr(755,root,root) %{_libdir}/libpyldb-util.cpython-3*.so.*.*.*
bc22b6e6 200%attr(755,root,root) %ghost %{_libdir}/libpyldb-util.cpython-3*.so.2
e0d50568
JB
201%attr(755,root,root) %{py3_sitedir}/ldb.cpython-*.so
202%{py3_sitedir}/_ldb_text.py
203%{py3_sitedir}/__pycache__/_ldb_text.cpython-*.py[co]
204
205%files -n python3-ldb-devel
206%defattr(644,root,root,755)
207%attr(755,root,root) %{_libdir}/libpyldb-util.cpython-3*.so
208%{_includedir}/pyldb.h
209%{_pkgconfigdir}/pyldb-util.cpython-3*.pc
This page took 0.454874 seconds and 4 git commands to generate.