1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define talloc_version 2.1.5 |
---|
4 | %define tdb_version 1.3.8 |
---|
5 | %define tevent_version 0.9.28 |
---|
6 | |
---|
7 | Name: libldb |
---|
8 | Summary: A schema-less, ldap like, API and database |
---|
9 | Version: 1.1.29 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | |
---|
12 | Group: System Environment/Libraries |
---|
13 | License: LGPLv3+ |
---|
14 | URL: http://ldb.samba.org/ |
---|
15 | |
---|
16 | Source: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz |
---|
17 | # Patches |
---|
18 | Patch1001: FED01-fix-tevent-check.patch |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | BuildRequires: libtalloc-devel >= %{talloc_version} |
---|
22 | BuildRequires: libtdb-devel >= %{tdb_version} |
---|
23 | BuildRequires: libtevent-devel >= %{tevent_version} |
---|
24 | BuildRequires: popt-devel |
---|
25 | BuildRequires: autoconf |
---|
26 | BuildRequires: libxslt |
---|
27 | BuildRequires: docbook-style-xsl |
---|
28 | BuildRequires: python-devel |
---|
29 | BuildRequires: python-tdb |
---|
30 | BuildRequires: pytalloc-devel |
---|
31 | BuildRequires: python-tevent |
---|
32 | BuildRequires: doxygen |
---|
33 | Requires: libtalloc >= %{talloc_version} |
---|
34 | Requires: libtdb >= %{tdb_version} |
---|
35 | Requires: libtevent >= %{tevent_version} |
---|
36 | |
---|
37 | Provides: bundled(libreplace) |
---|
38 | Provides: bundled(libtdb_compat) |
---|
39 | Provides: bundled(libccan) |
---|
40 | |
---|
41 | Vendor: Project Vine |
---|
42 | Distribution: Vine Linux |
---|
43 | Packager: tomop |
---|
44 | |
---|
45 | %description |
---|
46 | An extensible library that implements an LDAP like API to access remote LDAP |
---|
47 | servers, or use local tdb databases. |
---|
48 | |
---|
49 | %package -n ldb-tools |
---|
50 | Group: Applications/System |
---|
51 | Summary: Tools to manage LDB files |
---|
52 | Requires: libldb = %{version}-%{release} |
---|
53 | |
---|
54 | %description -n ldb-tools |
---|
55 | Tools to manage LDB files |
---|
56 | |
---|
57 | %package devel |
---|
58 | Group: Development/Libraries |
---|
59 | Summary: Developer tools for the LDB library |
---|
60 | Requires: libldb = %{version}-%{release} |
---|
61 | Requires: libtdb-devel >= %{tdb_version} |
---|
62 | Requires: libtalloc-devel >= %{talloc_version} |
---|
63 | Requires: libtevent-devel >= %{tevent_version} |
---|
64 | Requires: pkgconfig |
---|
65 | |
---|
66 | %description devel |
---|
67 | Header files needed to develop programs that link against the LDB library. |
---|
68 | |
---|
69 | %package -n pyldb |
---|
70 | Group: System Environment/Libraries |
---|
71 | Summary: Python bindings for the LDB library |
---|
72 | Requires: libldb = %{version}-%{release} |
---|
73 | Requires: python-tdb >= %{tdb_version} |
---|
74 | |
---|
75 | %description -n pyldb |
---|
76 | Python bindings for the LDB library |
---|
77 | |
---|
78 | %package -n pyldb-devel |
---|
79 | Group: Development/Libraries |
---|
80 | Summary: Development files for the Python bindings for the LDB library |
---|
81 | Requires: pyldb = %{version}-%{release} |
---|
82 | |
---|
83 | %description -n pyldb-devel |
---|
84 | Development files for the Python bindings for the LDB library |
---|
85 | |
---|
86 | %if %build_compat32 |
---|
87 | |
---|
88 | %package -n compat32-%{name} |
---|
89 | Summary: A schema-less, ldap like, API and database |
---|
90 | Group: System Environment/Libraries |
---|
91 | |
---|
92 | %description -n compat32-%{name} |
---|
93 | An extensible library that implements an LDAP like API to access remote LDAP |
---|
94 | servers, or use local tdb databases. |
---|
95 | |
---|
96 | %endif |
---|
97 | |
---|
98 | %prep |
---|
99 | %setup -q -n ldb-%{version} |
---|
100 | |
---|
101 | %patch1001 -p1 |
---|
102 | |
---|
103 | %build |
---|
104 | |
---|
105 | # tdb_compat and ccan have no upstream releases to link against yet and their |
---|
106 | # API is in flux. It is unsafe to make them public and shared at this time. |
---|
107 | %configure --disable-rpath \ |
---|
108 | --disable-rpath-install \ |
---|
109 | --bundled-libraries=NONE \ |
---|
110 | --builtin-libraries=tdb_compat,ccan,replace \ |
---|
111 | --with-modulesdir=%{_libdir}/ldb/modules \ |
---|
112 | --with-privatelibdir=%{_libdir}/ldb |
---|
113 | |
---|
114 | make V=1 %{?_smp_mflags} |
---|
115 | doxygen Doxyfile |
---|
116 | |
---|
117 | %install |
---|
118 | make install DESTDIR=%{buildroot} |
---|
119 | |
---|
120 | rm -f %{buildroot}%{_libdir}/libldb.a |
---|
121 | |
---|
122 | # Remove _tevent.so (it's managed by python-tevent) |
---|
123 | #rm -f %{buildroot}/%{python_sitearch}/_tevent.so |
---|
124 | |
---|
125 | # Shared libraries need to be marked executable for |
---|
126 | # rpmbuild to strip them and include them in debuginfo |
---|
127 | find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \; |
---|
128 | |
---|
129 | # Install API docs |
---|
130 | cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} |
---|
131 | |
---|
132 | %clean |
---|
133 | rm -rf %{buildroot} |
---|
134 | |
---|
135 | %post |
---|
136 | /sbin/ldconfig |
---|
137 | |
---|
138 | %postun |
---|
139 | /sbin/ldconfig |
---|
140 | |
---|
141 | %post -n pyldb |
---|
142 | /sbin/ldconfig |
---|
143 | |
---|
144 | %postun -n pyldb |
---|
145 | /sbin/ldconfig |
---|
146 | |
---|
147 | %if %build_compat32 |
---|
148 | |
---|
149 | %post -n compat32-%{name} |
---|
150 | /sbin/ldconfig |
---|
151 | |
---|
152 | %postun -n compat32-%{name} |
---|
153 | /sbin/ldconfig |
---|
154 | |
---|
155 | %endif |
---|
156 | |
---|
157 | %files |
---|
158 | %defattr(-,root,root,-) |
---|
159 | %dir %{_libdir}/ldb |
---|
160 | %{_libdir}/libldb.so.* |
---|
161 | %dir %{_libdir}/ldb/modules |
---|
162 | %dir %{_libdir}/ldb/modules/ldb |
---|
163 | %{_libdir}/ldb/libldb-cmdline.so |
---|
164 | %{_libdir}/ldb/modules/ldb/*.so |
---|
165 | |
---|
166 | %files -n ldb-tools |
---|
167 | %defattr(-,root,root,-) |
---|
168 | %{_bindir}/ldbadd |
---|
169 | %{_bindir}/ldbdel |
---|
170 | %{_bindir}/ldbedit |
---|
171 | %{_bindir}/ldbmodify |
---|
172 | %{_bindir}/ldbrename |
---|
173 | %{_bindir}/ldbsearch |
---|
174 | %{_mandir}/man1/ldbadd.1.* |
---|
175 | %{_mandir}/man1/ldbdel.1.* |
---|
176 | %{_mandir}/man1/ldbedit.1.* |
---|
177 | %{_mandir}/man1/ldbmodify.1.* |
---|
178 | %{_mandir}/man1/ldbrename.1.* |
---|
179 | %{_mandir}/man1/ldbsearch.1.* |
---|
180 | |
---|
181 | %files devel |
---|
182 | %defattr(-,root,root,-) |
---|
183 | %{_includedir}/ldb_module.h |
---|
184 | %{_includedir}/ldb_handlers.h |
---|
185 | %{_includedir}/ldb_errors.h |
---|
186 | %{_includedir}/ldb_version.h |
---|
187 | %{_includedir}/ldb.h |
---|
188 | %{_libdir}/libldb.so |
---|
189 | |
---|
190 | %{_libdir}/pkgconfig/ldb.pc |
---|
191 | %{_mandir}/man3/ldb*.gz |
---|
192 | |
---|
193 | %files -n pyldb |
---|
194 | %defattr(-,root,root,-) |
---|
195 | %{python_sitearch}/ldb.so |
---|
196 | %{python_sitearch}/_ldb_text.* |
---|
197 | %{_libdir}/libpyldb-util.so.1* |
---|
198 | |
---|
199 | %files -n pyldb-devel |
---|
200 | %defattr(-,root,root,-) |
---|
201 | %{_includedir}/pyldb.h |
---|
202 | %{_libdir}/libpyldb-util.so |
---|
203 | %{_libdir}/pkgconfig/pyldb-util.pc |
---|
204 | %{_mandir}/man*/Py*.gz |
---|
205 | |
---|
206 | %if %build_compat32 |
---|
207 | |
---|
208 | %files -n compat32-%{name} |
---|
209 | %defattr(-,root,root,-) |
---|
210 | %dir %{_libdir}/ldb |
---|
211 | %{_libdir}/libldb.so.* |
---|
212 | %dir %{_libdir}/ldb/modules |
---|
213 | %dir %{_libdir}/ldb/modules/ldb |
---|
214 | %{_libdir}/ldb/libldb-cmdline.so |
---|
215 | %{_libdir}/ldb/modules/ldb/*.so |
---|
216 | |
---|
217 | %endif |
---|
218 | |
---|
219 | |
---|
220 | %changelog |
---|
221 | * Sun Dec 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.29-1 |
---|
222 | - new upstream release. |
---|
223 | |
---|
224 | * Wed Feb 24 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.26-1 |
---|
225 | - new upstream release. |
---|
226 | |
---|
227 | * Fri Dec 18 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.25-1 |
---|
228 | - new upstream release. |
---|
229 | |
---|
230 | * Thu Dec 17 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.24-1 |
---|
231 | - new upstream release. |
---|
232 | |
---|
233 | * Wed Dec 2 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.23-1 |
---|
234 | - new upstream release. |
---|
235 | |
---|
236 | * Fri Jul 24 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.21-1 |
---|
237 | - new upstream release. |
---|
238 | |
---|
239 | * Thu Apr 16 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.20-2 |
---|
240 | - added compat32 package. |
---|
241 | |
---|
242 | * Fri Mar 6 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.20-1 |
---|
243 | - new upstream release. |
---|
244 | |
---|
245 | * Mon Jan 12 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.19-1 |
---|
246 | - new upstream release. |
---|
247 | |
---|
248 | * Wed Dec 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.18-1 |
---|
249 | - new upstream release. |
---|
250 | |
---|
251 | * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.1.17-2 |
---|
252 | - moved libldb and pyldb to System Environment/Libraries Group |
---|
253 | - moved ldb-tool to Applications/System Group |
---|
254 | |
---|
255 | * Tue Aug 19 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.17-1 |
---|
256 | - new upstream release. |
---|
257 | |
---|
258 | * Wed Jan 08 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.16-2 |
---|
259 | - rebuilt with current environment. |
---|
260 | |
---|
261 | * Tue Oct 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.16-1 |
---|
262 | - new upstream release. |
---|
263 | |
---|
264 | * Sun Mar 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.15-1 |
---|
265 | - new upstream release. |
---|
266 | |
---|
267 | * Thu Dec 20 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.14-3 |
---|
268 | - moved libldb-cmdline.so to main package. |
---|
269 | |
---|
270 | * Tue Dec 18 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.14-2 |
---|
271 | - fixed dependency. |
---|
272 | |
---|
273 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.14-1 |
---|
274 | - new upstream release. |
---|
275 | - initial build for Vine Linux. |
---|
276 | |
---|
277 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2 |
---|
278 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
279 | |
---|
280 | * Tue Dec 06 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.4-1 |
---|
281 | - New upstream release |
---|
282 | - Add ldb_module_error() routine |
---|
283 | - Fedora: work around unreliable configure check for pytevent |
---|
284 | - Drop patch to ignore --disable-silent-rules (included in tarball) |
---|
285 | |
---|
286 | * Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-4 |
---|
287 | - Add patch to ignore --disable-silent-rules |
---|
288 | |
---|
289 | * Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-3 |
---|
290 | - Add explicit mention of the bundled libreplace |
---|
291 | - https://fedorahosted.org/fpc/ticket/120 |
---|
292 | - Add explicit mention of bundled libtdb_compat and libccan |
---|
293 | - https://fedorahosted.org/fpc/ticket/119 |
---|
294 | |
---|
295 | * Mon Nov 21 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-2 |
---|
296 | - Build and install API documentation |
---|
297 | - Build tdb_compat and ccan statically. They have no upstream releases to |
---|
298 | link against yet and their API is in flux. It is unsafe to make them |
---|
299 | public and shared at this time. |
---|
300 | |
---|
301 | * Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-1 |
---|
302 | - New upstream release |
---|
303 | - Required for building newer samba4 packages |
---|
304 | |
---|
305 | * Tue Aug 2 2011 Simo Sorce <ssorce@redhat.com> - 1.1.0-1 |
---|
306 | - Update to 1.1.0 |
---|
307 | (dependency for samba4 alpha16 snapshot) |
---|
308 | |
---|
309 | * Tue Feb 22 2011 Simo Sorce <ssorce@redhat.com> - 1.0.2-1 |
---|
310 | - Update to 1.0.2 |
---|
311 | (dependency for samba4 alpha15 snapshot) |
---|
312 | |
---|
313 | * Fri Feb 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-2 |
---|
314 | - Disable rpath |
---|
315 | |
---|
316 | * Fri Feb 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-1 |
---|
317 | - New upstream release 1.0.0 |
---|
318 | - SOname bump to account for module loading changes |
---|
319 | - Rename libldb-tools to ldb-tools to make upgrades easier |
---|
320 | |
---|
321 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.22-9 |
---|
322 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
323 | |
---|
324 | * Fri Feb 04 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.22-8 |
---|
325 | - Fixes from package review |
---|
326 | - Change Requires: on tools subpackage to be the exact version/release |
---|
327 | - Remove unnecessary BuildRoot directive |
---|
328 | |
---|
329 | * Mon Jan 17 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.22-7 |
---|
330 | - Update to 0.9.22 (first independent release of libldb upstream) |
---|
331 | |
---|