e214c1f
%if 0%{?fedora} || 0%{?rhel} > 7
44ef720
%global with_python3 1
6633552
%endif
6633552
1be7188
Name: libtdb
3faec72
Version: 1.4.3
881c7f7
Release: 6%{?dist}
1be7188
Summary: The tdb library
1be7188
License: LGPLv3+
1be7188
URL: http://tdb.samba.org/
89bf898
Source0: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
89bf898
Source1: http://samba.org/ftp/tdb/tdb-%{version}.tar.asc
89bf898
# gpg2 --no-default-keyring --keyring ./tdb.keyring --recv-keys 9147A339719518EE9011BCB54793916113084025
89bf898
Source2: tdb.keyring
1be7188
93f6c55
# Patches
e5a3e1d
Patch0001: 0003-wafsamba-Fix-few-SyntaxWarnings-caused-by-regular-ex.patch
93f6c55
0315d70
BuildRequires: make
Jakub Hrozek beca322
BuildRequires: gcc
89bf898
BuildRequires: gnupg2
d6583c1
BuildRequires: libxslt
fa77dfc
BuildRequires: docbook-style-xsl
44ef720
%if 0%{?with_python3}
d301dd2
BuildRequires: python3-devel
44ef720
%endif
1be7188
d47df94
Provides: bundled(libreplace)
bbde7fc
Obsoletes: python2-tdb < 1.4.2-1
d47df94
1be7188
%description
1be7188
A library that implements a trivial database.
1be7188
1be7188
%package devel
1be7188
Summary: Header files need to link the Tdb library
1be7188
Requires: libtdb = %{version}-%{release}
1be7188
1be7188
%description devel
1be7188
Header files needed to develop programs that link against the Tdb library.
1be7188
1be7188
%package -n tdb-tools
1be7188
Summary: Developer tools for the Tdb library
1be7188
Requires: libtdb = %{version}-%{release}
1be7188
1be7188
%description -n tdb-tools
1be7188
Tools to manage Tdb files
1be7188
44ef720
%if 0%{?with_python3}
d301dd2
%package -n python3-tdb
d301dd2
Summary: Python3 bindings for the Tdb library
d301dd2
Requires: libtdb = %{version}-%{release}
d5401d3
%{?python_provide:%python_provide python3-tdb}
d301dd2
d301dd2
%description -n python3-tdb
d301dd2
Python3 bindings for libtdb
44ef720
%endif
d301dd2
1be7188
%prep
Jakub Hrozek de6a63a
%autosetup -n tdb-%{version} -p1
c18cc8f
1be7188
%build
f8fefd2
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
d47df94
%configure --disable-rpath \
d47df94
           --bundled-libraries=NONE \
bbde7fc
           --builtin-libraries=replace
44ef720
634692f
%make_build
1be7188
5e5dcb5
%check
634692f
%make_build check
5e5dcb5
1be7188
%install
1be7188
make install DESTDIR=$RPM_BUILD_ROOT
1be7188
1be7188
%files
1be7188
%{_libdir}/libtdb.so.*
1be7188
1be7188
%files devel
c18cc8f
%doc docs/README
1be7188
%{_includedir}/tdb.h
1be7188
%{_libdir}/libtdb.so
1be7188
%{_libdir}/pkgconfig/tdb.pc
1be7188
1be7188
%files -n tdb-tools
1be7188
%{_bindir}/tdbbackup
1be7188
%{_bindir}/tdbdump
1be7188
%{_bindir}/tdbtool
f594f82
%{_bindir}/tdbrestore
d6583c1
%{_mandir}/man8/tdbbackup.8*
d6583c1
%{_mandir}/man8/tdbdump.8*
d6583c1
%{_mandir}/man8/tdbtool.8*
f594f82
%{_mandir}/man8/tdbrestore.8*
1be7188
44ef720
%if 0%{?with_python3}
d301dd2
%files -n python3-tdb
b2beda9
%{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co]
b2beda9
%{python3_sitearch}/tdb.cpython*.so
d301dd2
%{python3_sitearch}/_tdb_text.py
44ef720
%endif
1be7188
8ec0fbd
%ldconfig_scriptlets
1c5cd7d
1be7188
%changelog
881c7f7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-6
881c7f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
881c7f7
720f40e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-5
720f40e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
720f40e
634692f
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 1.4.3-4
634692f
- Use make macros
634692f
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
634692f
c6666ec
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-3
c6666ec
- Rebuilt for Python 3.9
c6666ec
9ab470f
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
9ab470f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9ab470f
3faec72
* Wed Jan 22 2020 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.4.3-1
3faec72
- rhbz#1783927 - libtdb-1.4.3 is available
3faec72
099fb1e
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.2-2
099fb1e
- Rebuilt for Python 3.8.0rc1 (#1748018)
099fb1e
e5a3e1d
* Mon Aug 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.4.2-1
e5a3e1d
- rhbz#1691299 - libtdb-1.4.2 is available
e5a3e1d
- rhbz#1737644 - libldb, libtalloc, libtevent, libtdb: Remove Python 2 subpackages from Fedora 31+
e5a3e1d
e931e68
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.18-5
e931e68
- Rebuilt for Python 3.8
e931e68
e598ffa
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.18-4
e598ffa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e598ffa
9bed2c5
* Fri Jun 14 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.18-3
9bed2c5
- rhbz#1718113 - samba fail to build with Python 3.8
9bed2c5
  AttributeError: module 'time' has no attribute 'clock'
9bed2c5
6be35fe
* Mon Jun 03 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.18-2
6be35fe
- rhbz#1711638 - fails to build with Python 3.8.0a4
6be35fe
c7c60b0
* Tue Feb 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.18-1
c7c60b0
- rhbz#1683185 - libtdb-1.3.18 is available
c7c60b0
605656e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.17-2
605656e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
605656e
a74bbd7
* Thu Jan 17 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.17-1
a74bbd7
- rhbz#1667472 - libtdb-1.3.17 is available
a74bbd7
Jakub Hrozek a4c2634
* Fri Jul 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 1.3.16-2
Jakub Hrozek a4c2634
- Drop the unneeded ABI hide patch
Jakub Hrozek a4c2634
- Use pathfix.py instead of a local patch to munge the python path
Jakub Hrozek a4c2634
Jakub Hrozek a4c2634
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 1.3.16-1
Jakub Hrozek de6a63a
- New upstream release 1.3.16
Jakub Hrozek de6a63a
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
Jakub Hrozek de6a63a
- Patch the waf script to explicitly call python2 as "env python" doesn't
Jakub Hrozek de6a63a
  yield py2 anymore
Jakub Hrozek de6a63a
191f812
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.15-5
191f812
- Rebuilt for Python 3.7
191f812
796fa2c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-4
796fa2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
796fa2c
469777e
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.3.15-3
469777e
- Rebuilt for switch to libxcrypt
469777e
e214c1f
* Thu Nov 30 2017 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.15-2
e214c1f
- Update spec file conditionals
e214c1f
94c6c6d
* Sat Aug 26 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.15-1
94c6c6d
- New upstream release 1.3.15
94c6c6d
e479195
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-3
e479195
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e479195
8a427bf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-2
8a427bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8a427bf
5e5dcb5
* Mon Jul  3 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.14-1
5e5dcb5
- New upstream release 1.3.14
5e5dcb5
- run unittests
5e5dcb5
e87a4fb
* Fri Apr 28 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.13-1
e87a4fb
- New upstream release 1.3.13
e87a4fb
- removed Group fields (new packaging policy)
e87a4fb
- %%defattr() is no longer needed
e87a4fb
b3602e5
* Tue Feb 14 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.12-5
b3602e5
- rhbz#1401175 - Missing symbol versioning provided by libtdb.so
b3602e5
- Fix configure time detection with -Werror=implicit-function-declaration
b3602e5
  -Werror=implicit-int
b3602e5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b3602e5
90fcb5d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.12-4
90fcb5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
90fcb5d
6fbaa3c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.12-3
6fbaa3c
- Rebuild for Python 3.6
6fbaa3c
c5f12a9
* Tue Dec  6 2016 Adam Williamson <awilliam@redhat.com> - 1.3.12-2
c5f12a9
- rebuild with reverted redhat-rpm-config to fix missing library symbols
c5f12a9
Jakub Hrozek bd567ad
* Fri Dec  2 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.12-1
Jakub Hrozek bd567ad
- New upstream release 1.3.12
Jakub Hrozek bd567ad
Jakub Hrozek 3c3fbc4
* Tue Aug 30 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.11-1
Jakub Hrozek bd567ad
- New upstream release 1.3.11
Jakub Hrozek 3c3fbc4
Jakub Hrozek 930b477
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.10-1
Jakub Hrozek 930b477
- New upstream release 1.3.10
Jakub Hrozek 930b477
fd2b237
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-2
fd2b237
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fd2b237
Jakub Hrozek 70200ef
* Wed Apr 27 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.9-1
Jakub Hrozek 70200ef
- New upstream release 1.3.9
Jakub Hrozek 70200ef
452dc36
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-3
452dc36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
452dc36
dfcd7f5
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-2
dfcd7f5
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
dfcd7f5
c4c86d3
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.8-1
c4c86d3
- New upstream release 1.3.8
c4c86d3
2bd6457
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-2
2bd6457
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2bd6457
d301dd2
* Wed Jul 22 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.7-1
d301dd2
- New upstream release 1.3.7
d301dd2
- Build Python3 bindings
d301dd2
ef81590
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
ef81590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ef81590
d97231c
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.6-1
d97231c
- New upstream release 1.3.6
d97231c
618d4c6
* Wed Apr 29 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.5-1
618d4c6
- New upstream release 1.3.5
618d4c6
a4f590e
* Mon Jan  5 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.4-1
a4f590e
- New upstream release 1.3.4
a4f590e
7e9f9f8
* Fri Dec  5 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.3-1
7e9f9f8
- New upstream release 1.3.3
7e9f9f8
6088abd
* Thu Sep 18 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.1-1
6088abd
- New upstream release 1.3.1
6088abd
34e3a44
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-4
34e3a44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
34e3a44
1ae7005
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
1ae7005
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1ae7005
f7a9e8d
* Fri May 23 2014 Adam Williamson <awilliam@redhat.com> - 1.3.0-2
f7a9e8d
- add a missing include to tdb.h (fixes builds against libtdb) (BSO #10625)
f7a9e8d
0c1850b
* Fri May 23 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.0-1
0c1850b
- New upstream release 1.3.0
0c1850b
e60d901
* Thu Mar 20 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.2.13-1
e60d901
- New upstream release 1.2.13
e60d901
a0c9a1c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-2
a0c9a1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a0c9a1c
1519167
* Tue Jun 04 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.2.12-1
1519167
- New upstream release 1.2.12
1519167
4cb448a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.11-2
4cb448a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4cb448a
c1cb1a9
* Sat Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.2.11-1
d017afe
- New upstream release 1.2.11
d017afe
a42fd6a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-16
a42fd6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a42fd6a
1e069ff
* Tue May 22 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.2.10-15
1e069ff
- New upstream release 1.2.10
1e069ff
- Remove upstreamed patches
1e069ff
- Provides functionality for the upcoming Samba 4 beta
1e069ff
b607a2e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-14
b607a2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b607a2e
c18cc8f
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-13
c18cc8f
- Add patch to ignore --disable-silent-rules
c18cc8f
- Include README documentation
c18cc8f
d47df94
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-12
d47df94
- Add explicit mention of the bundled libreplace
d47df94
- https://fedorahosted.org/fpc/ticket/120
d47df94
d47df94
c98eb1d
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-11
c98eb1d
- Rebuild for F17 due to bz#744766
c98eb1d
00e3e0e
* Tue Apr  5 2011 Simo Sorce <ssorce@redhat.com> - 1.2.9-9
00e3e0e
- Add patch to limit database expansion, was causing OOMs in SSSD in some
00e3e0e
  extreme situations.
00e3e0e
24af429
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
24af429
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
24af429
8e1f292
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
8e1f292
- Actually fix the verbosity
8e1f292
8e1f292
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
8d49e46
- Let rpmbuild strip binaries, make build more verbose.
8d49e46
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
8d49e46
35c073c
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
35c073c
- Install python bindings into the correct location
35c073c
1c5cd7d
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
1c5cd7d
- Run ldconfig on python-tdb
1c5cd7d
34a1fb4
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
34a1fb4
- Do not delete a necessary file during %%install
34a1fb4
615c564
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
615c564
- Bump release to rebuild with the correct sources in place
615c564
78a0162
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
78a0162
- Bump build to rebuild with sources in place
78a0162
f594f82
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
f594f82
- New upstream bugfix release
f594f82
- Adds a new tdbrestore utility
f594f82
- Convert to new WAF build-system
f594f82
- Add python bindings in new python-tdb subpackage
f594f82
fa77dfc
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
fa77dfc
- add missing build require
fa77dfc
d6583c1
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
d6583c1
- Fix spec file
d6583c1
- Package manpages too
d6583c1
87cfe0d
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
87cfe0d
- New upstream bugfix release
87cfe0d
83b8561
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
83b8561
- New upstream release
83b8561
aaed6cb
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
aaed6cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
aaed6cb
f08dfec
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
f08dfec
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
f08dfec
  upstream.
f08dfec
a4704f9
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
a4704f9
- New upstream release
a4704f9
1be7188
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
1be7188
- First public independent release from upstream