2 # - ld.bfd enforced because gold does not understand '!' in version script (binutils-3:2.21.53.0.1-1)
3 %define talloc_version 2:2.1.5
4 %define tdb_version 2:1.3.8
5 %define tevent_version 0.9.26
6 Summary: LDAP-like embedded database
7 Summary(pl.UTF-8): Wbudowana baza danych podobna do LDAP
13 Source0: https://www.samba.org/ftp/ldb/%{name}-%{version}.tar.gz
14 # Source0-md5: d674b5b9e659a97e43b5e424b3cedbb4
15 URL: https://ldb.samba.org/
16 BuildRequires: autoconf
17 BuildRequires: docbook-style-xsl
18 BuildRequires: libxslt
19 BuildRequires: openldap-devel
20 BuildRequires: popt-devel >= 1.6
21 BuildRequires: python-devel >= 1:2.4.2
22 BuildRequires: python-talloc-devel >= %{talloc_version}
23 BuildRequires: python-tdb >= %{tdb_version}
24 BuildRequires: python-tevent >= %{tevent_version}
25 BuildRequires: rpmbuild(macros) >= 1.219
26 BuildRequires: talloc-devel >= %{talloc_version}
27 BuildRequires: tdb-devel >= %{tdb_version}
28 BuildRequires: tevent-devel >= %{tevent_version}
29 Requires: talloc >= %{talloc_version}
30 Requires: tdb >= %{tdb_version}
31 Requires: tevent >= %{tevent_version}
33 Provides: libldb = %{version}-%{release}
34 Obsoletes: libldb < 1.1.0-3
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 An extensible library that implements an LDAP like API to access
39 remote LDAP servers, or use local tdb databases.
41 %description -l pl.UTF-8
42 Rozszerzalna biblioteka implementująca API podobne do LDAP pozwalające
43 na dostęp do zdalnych serwerów LDAP lub wykorzystanie lokalnych baz
47 Summary: Tools to manage LDB files
48 Summary(pl.UTF-8): Narzędzia do zarządzania plikami LDB
49 Group: Applications/Databases
50 Requires: %{name} = %{version}-%{release}
53 Tools to manage LDB files.
55 %description tools -l pl.UTF-8
56 Narzędzia do zarządzania plikami LDB.
59 Summary: Header files for the LDB library
60 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LDB
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: talloc-devel >= %{talloc_version}
64 Requires: tdb-devel >= %{tdb_version}
65 Requires: tevent-devel >= %{tevent_version}
66 Provides: libldb-devel = %{version}-%{release}
67 Obsoletes: libldb-devel < 1.1.0-3
70 Header files needed to develop programs that link against the LDB
73 %description devel -l pl.UTF-8
74 Pliki nagłówkowe potrzebne do tworzenia programów wykorzystujących
77 %package -n python-ldb
78 Summary: Python bindings for the LDB library
79 Summary(pl.UTF-8): Wiązania Pythona do biblioteki LDB
80 Group: Libraries/Python
81 Requires: %{name} = %{version}-%{release}
82 Requires: python-libs >= 1:2.4.2
83 Requires: python-tdb >= %{tdb_version}
86 %description -n python-ldb
87 Python bindings for the LDB library.
89 %description -n python-ldb -l pl.UTF-8
90 Wiązania Pythona do biblioteki LDB.
92 %package -n python-ldb-devel
93 Summary: Development files for the Python bindings for the LDB library
94 Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do biblioteki LDB
95 Group: Development/Libraries
96 Requires: python-ldb = %{version}-%{release}
98 %description -n python-ldb-devel
99 Development files for the Python bindings for the LDB library.
101 %description -n python-ldb-devel -l pl.UTF-8
102 Pliki programistyczne wiązań Pythona do biblioteki LDB.
109 CFLAGS="%{rpmcflags}" \
110 LDFLAGS="%{rpmldflags} -fuse-ld=bfd" \
111 PYTHONDIR=%{py_sitedir} \
113 --prefix=%{_prefix} \
114 --libdir=%{_libdir} \
115 --with-modulesdir=%{_libdir}/ldb/modules \
116 --with-privatelibdir=%{_libdir}/ldb \
117 --bundled-libraries=NONE \
119 --disable-rpath-install
125 rm -rf $RPM_BUILD_ROOT
127 DESTDIR=$RPM_BUILD_ROOT
129 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
130 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
133 # Shared libraries need to be marked executable for
134 # rpmbuild to strip them and include them in debuginfo
135 find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} ';'
138 rm -rf $RPM_BUILD_ROOT
140 %post -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
143 %post -n python-ldb -p /sbin/ldconfig
144 %postun -n python-ldb -p /sbin/ldconfig
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/libldb.so.*.*.*
149 %attr(755,root,root) %ghost %{_libdir}/libldb.so.1
151 %dir %{_libdir}/ldb/modules
152 %dir %{_libdir}/ldb/modules/ldb
153 %attr(755,root,root) %{_libdir}/ldb/modules/ldb/*.so
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_bindir}/ldbadd
158 %attr(755,root,root) %{_bindir}/ldbdel
159 %attr(755,root,root) %{_bindir}/ldbedit
160 %attr(755,root,root) %{_bindir}/ldbmodify
161 %attr(755,root,root) %{_bindir}/ldbrename
162 %attr(755,root,root) %{_bindir}/ldbsearch
163 %attr(755,root,root) %{_libdir}/ldb/libldb-cmdline.so
164 %{_mandir}/man1/ldbadd.1*
165 %{_mandir}/man1/ldbdel.1*
166 %{_mandir}/man1/ldbedit.1*
167 %{_mandir}/man1/ldbmodify.1*
168 %{_mandir}/man1/ldbrename.1*
169 %{_mandir}/man1/ldbsearch.1*
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/libldb.so
174 %{_includedir}/ldb_module.h
175 %{_includedir}/ldb_handlers.h
176 %{_includedir}/ldb_errors.h
177 %{_includedir}/ldb_version.h
179 %{_pkgconfigdir}/ldb.pc
180 %{_mandir}/man3/ldb.3*
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libpyldb-util.so.*.*.*
185 %attr(755,root,root) %ghost %{_libdir}/libpyldb-util.so.1
186 %attr(755,root,root) %{py_sitedir}/ldb.so
187 %{py_sitedir}/_ldb_text.py[co]
189 %files -n python-ldb-devel
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/libpyldb-util.so
192 %{_includedir}/pyldb.h
193 %{_pkgconfigdir}/pyldb-util.pc