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