-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlibtdb.spec
378 lines (276 loc) · 12.3 KB
/
libtdb.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
%global with_python3 1
# Python 2 no longer supported
%global with_python2 0
Name: libtdb
Version: 1.4.8
Release: 0.1%{?dist}
Summary: The tdb library
License: LGPLv3+
URL: https://tdb.samba.org/
Source: https://download.samba.org/pub/tdb/tdb-%{version}.tar.gz
# Patches
BuildRequires: gcc
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
%if %{with_python2}
BuildRequires: python2-devel
%endif
%if %{with_python3}
BuildRequires: python%{python3_pkgversion}-devel
%endif # with_pytthon3
Provides: bundled(libreplace)
%description
A library that implements a trivial database.
%package devel
Summary: Header files need to link the Tdb library
Requires: libtdb = %{version}-%{release}
%description devel
Header files needed to develop programs that link against the Tdb library.
%package -n tdb-tools
Summary: Developer tools for the Tdb library
Requires: libtdb = %{version}-%{release}
%description -n tdb-tools
Tools to manage Tdb files
%if %{with_python2}
%package -n python2-tdb
Summary: Python bindings for the Tdb library
Requires: libtdb = %{version}-%{release}
%{?python_provide:%python_provide python2-tdb}
%description -n python2-tdb
Python bindings for libtdb
%endif
%if %{with_python3}
%package -n python%{python3_pkgversion}-tdb
Summary: Python3 bindings for the Tdb library
Requires: libtdb = %{version}-%{release}
%{?python_provide:%python_provide python%{python3_pkgversion}-tdb}
%if ! %{with_python2}
Obsoletes: python2-tdb <= %{version}-%{release}
%endif
%description -n python%{python3_pkgversion}-tdb
Python3 bindings for libtdb
%endif # with_python3
%prep
%autosetup -n tdb-%{version} -p1
%build
%{?export_waf_python}
%configure --disable-rpath \
--bundled-libraries=NONE \
--builtin-libraries=replace
make %{?_smp_mflags} V=1
%check
%{?export_waf_python}
make %{?_smp_mflags} check
%install
%{?export_waf_python}
make install DESTDIR=$RPM_BUILD_ROOT
%files
%{_libdir}/libtdb.so.*
%files devel
%doc docs/README
%{_includedir}/tdb.h
%{_libdir}/libtdb.so
%{_libdir}/pkgconfig/tdb.pc
%files -n tdb-tools
%{_bindir}/tdbbackup
%{_bindir}/tdbdump
%{_bindir}/tdbtool
%{_bindir}/tdbrestore
%{_mandir}/man8/tdbbackup.8*
%{_mandir}/man8/tdbdump.8*
%{_mandir}/man8/tdbtool.8*
%{_mandir}/man8/tdbrestore.8*
%if %{with_python2}
%files -n python2-tdb
%{python2_sitearch}/tdb.so
%{python2_sitearch}/_tdb_text.py*
%endif
%if %{with_python3}
%files -n python%{python3_pkgversion}-tdb
%{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co]
%{python3_sitearch}/tdb.cpython*.so
%{python3_sitearch}/_tdb_text.py
%endif # with_python3
%ldconfig_scriptlets
#%%post -p /sbin/ldconfig
#%%postun -p /sbin/ldconfig
%changelog
* Sat Feb 5 2022 Nico Kadel-Garcia <[email protected]> - 1.4.6-0
- Update to 1.4.6
* Sat Sep 5 2020 Nico Kadel-Garcia <[email protected]> - 1.4.3-0.1
- Discard epel-rpm-macros
- Use python3 rather than python%%{python3_pkgversion}
* Mon Dec 16 2019 Nico Kadel-Garcia <[email protected]> - 1.4.3-0
- Update to 1.4.3
* Wed Aug 21 2019 Nico Kadel-Garcia <[email protected]> - 1.4.2-0
- Update to 1.4.2
* Sat Jul 27 2019 Nico Kadel-Garcia <[email protected]> - 1.4.0-0
- Update to 1.4.0
- Disable python2 entirely
- Enabele __pycache__/*.py[co] files only for RHEL 8 or fedora
* Sun May 12 2019 Nico Kadel-Garcia <[email protected]> - 1.3.18-0.4
- Disable python2 for RHEL 8
* Thu Apr 25 2019 Nico Kadel-Garcia <[email protected]> - 1.3.18-0.3
- Update python2/python3 logic to discard python2 for Fedora > 30
* Mon Apr 15 2019 Nico Kadel-Garcia - 1.3.18-0.2
- Apply python pkgversion
* Tue Mar 19 2019 Nico Kadel-Garcia <[email protected]> - 1.3.18-0.1
- Roll back release to avoid rawhide conflicts
- Include python2/python3 workarounds for Fedora python3 defaults
- Swap out ldconfig_scriptlets for RHEL compilation
* Tue Feb 26 2019 Lukas Slebodnik <[email protected]> - 1.3.18-1
- rhbz#1683185 - libtdb-1.3.18 is available
* Fri Feb 01 2019 Fedora Release Engineering <[email protected]> - 1.3.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jan 17 2019 Lukas Slebodnik <[email protected]> - 1.3.17-1
- rhbz#1667472 - libtdb-1.3.17 is available
* Fri Jul 13 2018 Jakub Hrozek <[email protected]> - 1.3.16-2
- Drop the unneeded ABI hide patch
- Use pathfix.py instead of a local patch to munge the python path
* Thu Jul 12 2018 Jakub Hrozek <[email protected]> - 1.3.16-1
- New upstream release 1.3.16
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
- Patch the waf script to explicitly call python2 as "env python" does not
yield py2 anymore
* Tue Jun 19 2018 Miro Hrončok <[email protected]> - 1.3.15-5
- Rebuilt for Python 3.7
* Wed Feb 07 2018 Fedora Release Engineering <[email protected]> - 1.3.15-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Jan 20 2018 Björn Esser <[email protected]> - 1.3.15-3
- Rebuilt for switch to libxcrypt
* Thu Nov 30 2017 Lukas Slebodnik <[email protected]> - 1.3.15-2
- Update spec file conditionals
* Sat Aug 26 2017 Lukas Slebodnik <[email protected]> - 1.3.15-1
- New upstream release 1.3.15
* Thu Aug 03 2017 Fedora Release Engineering <[email protected]> - 1.3.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 1.3.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon Jul 3 2017 Lukas Slebodnik <[email protected]> - 1.3.14-1
- New upstream release 1.3.14
- run unittests
* Fri Apr 28 2017 Lukas Slebodnik <[email protected]> - 1.3.13-1
- New upstream release 1.3.13
- removed Group fields (new packaging policy)
- %%defattr() is no longer needed
* Tue Feb 14 2017 Lukas Slebodnik <[email protected]> - 1.3.12-5
- rhbz#1401175 - Missing symbol versioning provided by libtdb.so
- Fix configure time detection with -Werror=implicit-function-declaration
-Werror=implicit-int
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 1.3.12-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <[email protected]> - 1.3.12-3
- Rebuild for Python 3.6
* Tue Dec 6 2016 Adam Williamson <[email protected]> - 1.3.12-2
- rebuild with reverted redhat-rpm-config to fix missing library symbols
* Fri Dec 2 2016 Jakub Hrozek <[email protected]> - 1.3.12-1
- New upstream release 1.3.12
* Tue Aug 30 2016 Jakub Hrozek <[email protected]> - 1.3.11-1
- New upstream release 1.3.11
* Thu Jul 28 2016 Jakub Hrozek <[email protected]> - 1.3.10-1
- New upstream release 1.3.10
* Tue Jul 19 2016 Fedora Release Engineering <[email protected]> - 1.3.9-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Apr 27 2016 Jakub Hrozek <[email protected]> - 1.3.9-1
- New upstream release 1.3.9
* Thu Feb 04 2016 Fedora Release Engineering <[email protected]> - 1.3.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Nov 11 2015 Fedora Release Engineering <[email protected]> - 1.3.8-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Wed Nov 11 2015 Jakub Hrozek <[email protected]> - 1.3.8-1
- New upstream release 1.3.8
* Tue Nov 10 2015 Fedora Release Engineering <[email protected]> - 1.3.7-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Wed Jul 22 2015 Jakub Hrozek <[email protected]> - 1.3.7-1
- New upstream release 1.3.7
- Build Python3 bindings
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 1.3.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Jun 14 2015 Jakub Hrozek <[email protected]> - 1.3.6-1
- New upstream release 1.3.6
* Wed Apr 29 2015 Jakub Hrozek <[email protected]> - 1.3.5-1
- New upstream release 1.3.5
* Mon Jan 5 2015 Jakub Hrozek <[email protected]> - 1.3.4-1
- New upstream release 1.3.4
* Fri Dec 5 2014 Jakub Hrozek <[email protected]> - 1.3.3-1
- New upstream release 1.3.3
* Thu Sep 18 2014 Jakub Hrozek <[email protected]> - 1.3.1-1
- New upstream release 1.3.1
* Sun Aug 17 2014 Fedora Release Engineering <[email protected]> - 1.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 1.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri May 23 2014 Adam Williamson <[email protected]> - 1.3.0-2
- add a missing include to tdb.h (fixes builds against libtdb) (BSO #10625)
* Fri May 23 2014 Jakub Hrozek <[email protected]> - 1.3.0-1
- New upstream release 1.3.0
* Thu Mar 20 2014 Jakub Hrozek <[email protected]> - 1.2.13-1
- New upstream release 1.2.13
* Sat Aug 03 2013 Fedora Release Engineering <[email protected]> - 1.2.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Jun 04 2013 Jakub Hrozek <[email protected]> - 1.2.12-1
- New upstream release 1.2.12
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 1.2.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Dec 01 2012 Jakub Hrozek <[email protected]> - 1.2.11-1
- New upstream release 1.2.11
* Thu Jul 19 2012 Fedora Release Engineering <[email protected]> - 1.2.10-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue May 22 2012 Stephen Gallagher <[email protected]> - 1.2.10-15
- New upstream release 1.2.10
- Remove upstreamed patches
- Provides functionality for the upcoming Samba 4 beta
* Fri Jan 13 2012 Fedora Release Engineering <[email protected]> - 1.2.9-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Dec 01 2011 Stephen Gallagher <[email protected]> - 1.2.9-13
- Add patch to ignore --disable-silent-rules
- Include README documentation
* Wed Nov 23 2011 Stephen Gallagher <[email protected]> - 1.2.9-12
- Add explicit mention of the bundled libreplace
- https://fedorahosted.org/fpc/ticket/120
* Wed Nov 09 2011 Stephen Gallagher <[email protected]> - 1.2.9-11
- Rebuild for F17 due to bz#744766
* Tue Apr 5 2011 Simo Sorce <[email protected]> - 1.2.9-9
- Add patch to limit database expansion, was causing OOMs in SSSD in some
extreme situations.
* Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 1.2.9-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Jan 14 2011 Stephen Gallagher <[email protected]> - 1.2.9-8
- Actually fix the verbosity
* Fri Jan 14 2011 Stephen Gallagher <[email protected]> - 1.2.9-7
- Let rpmbuild strip binaries, make build more verbose.
- Original patch by Ville Skyttä <[email protected]>
* Wed Jan 12 2011 Stephen Gallagher <[email protected]> - 1.2.9-6
- Install python bindings into the correct location
* Tue Jan 11 2011 Stephen Gallagher <[email protected]> - 1.2.9-5
- Run ldconfig on python-tdb
* Tue Jan 11 2011 Stephen Gallagher <[email protected]> - 1.2.9-4
- Do not delete a necessary file during %%install
* Tue Jan 11 2011 Stephen Gallagher <[email protected]> - 1.2.9-3
- Bump release to rebuild with the correct sources in place
* Tue Jan 11 2011 Stephen Gallagher <[email protected]> - 1.2.9-2
- Bump build to rebuild with sources in place
* Tue Jan 11 2011 Stephen Gallagher <[email protected]> - 1.2.9-1
- New upstream bugfix release
- Adds a new tdbrestore utility
- Convert to new WAF build-system
- Add python bindings in new python-tdb subpackage
* Wed Feb 24 2010 Simo Sorce <[email protected]> - 1.2.1-3
- add missing build require
* Wed Feb 24 2010 Simo Sorce <[email protected]> - 1.2.1-2
- Fix spec file
- Package manpages too
* Wed Feb 24 2010 Simo Sorce <[email protected]> - 1.2.1-1
- New upstream bugfix release
* Tue Dec 15 2009 Simo Sorce <[email protected]> - 1.2.0-1
- New upstream release
* Sat Jul 25 2009 Fedora Release Engineering <[email protected]> - 1.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Jun 17 2009 Simo Sorce <[email protected]> - 1.1.5-1
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
upstream.
* Tue Jun 16 2009 Simo Sorce <[email protected]> - 1.1.5-0
- New upstream release
* Wed May 6 2009 Simo Sorce <[email protected]> - 1.1.3-15
- First public independent release from upstream