Blame SPECS/libtdb.spec

195ccf
%if 0%{?fedora} || 0%{?rhel} > 7
195ccf
%global with_python3 1
195ccf
%endif
195ccf
195ccf
Name: libtdb
d3fd8b
Version: 1.4.7
195ccf
Release: 1%{?dist}
195ccf
Summary: The tdb library
195ccf
License: LGPLv3+
195ccf
URL: http://tdb.samba.org/
195ccf
Source0: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
195ccf
Source1: http://samba.org/ftp/tdb/tdb-%{version}.tar.asc
195ccf
# gpg2 --no-default-keyring --keyring ./tdb.keyring --recv-keys 9147A339719518EE9011BCB54793916113084025
195ccf
Source2: tdb.keyring
195ccf
195ccf
# Patches
195ccf
Patch0001: 0003-wafsamba-Fix-few-SyntaxWarnings-caused-by-regular-ex.patch
195ccf
Patch0002: libtdb-revert-breaking-tdb.h.patch
195ccf
195ccf
BuildRequires: make
195ccf
BuildRequires: gcc
195ccf
BuildRequires: gnupg2
195ccf
BuildRequires: libxslt
195ccf
BuildRequires: docbook-style-xsl
195ccf
%if 0%{?with_python3}
195ccf
BuildRequires: python3-devel
195ccf
%endif
195ccf
195ccf
Provides: bundled(libreplace)
195ccf
Obsoletes: python2-tdb < 1.4.2-1
195ccf
195ccf
%description
195ccf
A library that implements a trivial database.
195ccf
195ccf
%package devel
195ccf
Summary: Header files need to link the Tdb library
195ccf
Requires: libtdb = %{version}-%{release}
195ccf
195ccf
%description devel
195ccf
Header files needed to develop programs that link against the Tdb library.
195ccf
195ccf
%package -n tdb-tools
195ccf
Summary: Developer tools for the Tdb library
195ccf
Requires: libtdb = %{version}-%{release}
195ccf
195ccf
%description -n tdb-tools
195ccf
Tools to manage Tdb files
195ccf
195ccf
%if 0%{?with_python3}
195ccf
%package -n python3-tdb
195ccf
Summary: Python3 bindings for the Tdb library
195ccf
Requires: libtdb = %{version}-%{release}
195ccf
%{?python_provide:%python_provide python3-tdb}
195ccf
195ccf
%description -n python3-tdb
195ccf
Python3 bindings for libtdb
195ccf
%endif
195ccf
195ccf
%prep
195ccf
%autosetup -n tdb-%{version} -p1
195ccf
195ccf
%build
195ccf
zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
195ccf
%configure --disable-rpath \
195ccf
           --bundled-libraries=NONE \
195ccf
           --builtin-libraries=replace
195ccf
195ccf
%make_build
195ccf
195ccf
%check
195ccf
%make_build check
195ccf
195ccf
%install
195ccf
make install DESTDIR=$RPM_BUILD_ROOT
195ccf
195ccf
%files
195ccf
%{_libdir}/libtdb.so.*
195ccf
195ccf
%files devel
195ccf
%doc docs/README
195ccf
%{_includedir}/tdb.h
195ccf
%{_libdir}/libtdb.so
195ccf
%{_libdir}/pkgconfig/tdb.pc
195ccf
195ccf
%files -n tdb-tools
195ccf
%{_bindir}/tdbbackup
195ccf
%{_bindir}/tdbdump
195ccf
%{_bindir}/tdbtool
195ccf
%{_bindir}/tdbrestore
195ccf
%{_mandir}/man8/tdbbackup.8*
195ccf
%{_mandir}/man8/tdbdump.8*
195ccf
%{_mandir}/man8/tdbtool.8*
195ccf
%{_mandir}/man8/tdbrestore.8*
195ccf
195ccf
%if 0%{?with_python3}
195ccf
%files -n python3-tdb
195ccf
%{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co]
195ccf
%{python3_sitearch}/tdb.cpython*.so
195ccf
%{python3_sitearch}/_tdb_text.py
195ccf
%endif
195ccf
195ccf
%ldconfig_scriptlets
195ccf
195ccf
%changelog
d3fd8b
* Fri Oct 21 2022 Andreas Schneider <asn@redhat.com> - 1.4.7-1
d3fd8b
- resolves: rhbz#2131998 - Rebase to version 1.4.7
d3fd8b
7ca32b
* Mon May 02 2022 Pavel Filipenský <pfilipen@redhat.com> - 1.4.6-1
7ca32b
- resolves: rhbz#2077489 - Rebase libtdb to the version (1.4.6) required by Samba
7ca32b
195ccf
* Mon Nov 29 2021 Pavel Filipenský <pfilipen@redhat.com> - 1.4.4-1
195ccf
- resolves: rhbz#2013584 - Rebase to version 1.4.4
195ccf
195ccf
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.3-10
195ccf
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
195ccf
  Related: rhbz#1991688
195ccf
195ccf
* Fri Jul 23 2021 Andreas Schneider <asn@redhat.com> - 1.4.3-9
195ccf
- resolves: rhbz#1938798 - Fix memory leak on transaction error
195ccf
195ccf
* Mon May 31 2021 Andreas Schneider <asn@redhat.com> - 1.4.3-8
195ccf
- related: rhbz#1962774 - Rebuilt for running gating tests
195ccf
195ccf
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.3-7
195ccf
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
195ccf
195ccf
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-6
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
195ccf
195ccf
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-5
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
195ccf
195ccf
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 1.4.3-4
195ccf
- Use make macros
195ccf
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
195ccf
195ccf
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-3
195ccf
- Rebuilt for Python 3.9
195ccf
195ccf
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
195ccf
195ccf
* Wed Jan 22 2020 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.4.3-1
195ccf
- rhbz#1783927 - libtdb-1.4.3 is available
195ccf
195ccf
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.2-2
195ccf
- Rebuilt for Python 3.8.0rc1 (#1748018)
195ccf
195ccf
* Mon Aug 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.4.2-1
195ccf
- rhbz#1691299 - libtdb-1.4.2 is available
195ccf
- rhbz#1737644 - libldb, libtalloc, libtevent, libtdb: Remove Python 2 subpackages from Fedora 31+
195ccf
195ccf
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.18-5
195ccf
- Rebuilt for Python 3.8
195ccf
195ccf
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.18-4
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
195ccf
195ccf
* Fri Jun 14 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.18-3
195ccf
- rhbz#1718113 - samba fail to build with Python 3.8
195ccf
  AttributeError: module 'time' has no attribute 'clock'
195ccf
195ccf
* Mon Jun 03 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.18-2
195ccf
- rhbz#1711638 - fails to build with Python 3.8.0a4
195ccf
195ccf
* Tue Feb 26 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.18-1
195ccf
- rhbz#1683185 - libtdb-1.3.18 is available
195ccf
195ccf
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.17-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
195ccf
195ccf
* Thu Jan 17 2019 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.17-1
195ccf
- rhbz#1667472 - libtdb-1.3.17 is available
195ccf
195ccf
* Fri Jul 13 2018 Jakub Hrozek <jhrozek@redhat.com> - 1.3.16-2
195ccf
- Drop the unneeded ABI hide patch
195ccf
- Use pathfix.py instead of a local patch to munge the python path
195ccf
195ccf
* Thu Jul 12 2018 Jakub Hrozek <jhrozek@redhat.com> - 1.3.16-1
195ccf
- New upstream release 1.3.16
195ccf
- Apply a patch to hide local ABI symbols to avoid issues with new binutils
195ccf
- Patch the waf script to explicitly call python2 as "env python" doesn't
195ccf
  yield py2 anymore
195ccf
195ccf
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.15-5
195ccf
- Rebuilt for Python 3.7
195ccf
195ccf
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.15-4
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
195ccf
195ccf
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.3.15-3
195ccf
- Rebuilt for switch to libxcrypt
195ccf
195ccf
* Thu Nov 30 2017 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.3.15-2
195ccf
- Update spec file conditionals
195ccf
195ccf
* Sat Aug 26 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.15-1
195ccf
- New upstream release 1.3.15
195ccf
195ccf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-3
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
195ccf
195ccf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
195ccf
195ccf
* Mon Jul  3 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.14-1
195ccf
- New upstream release 1.3.14
195ccf
- run unittests
195ccf
195ccf
* Fri Apr 28 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.13-1
195ccf
- New upstream release 1.3.13
195ccf
- removed Group fields (new packaging policy)
195ccf
- %%defattr() is no longer needed
195ccf
195ccf
* Tue Feb 14 2017 Lukas Slebodnik <lslebodn@redhat.com> - 1.3.12-5
195ccf
- rhbz#1401175 - Missing symbol versioning provided by libtdb.so
195ccf
- Fix configure time detection with -Werror=implicit-function-declaration
195ccf
  -Werror=implicit-int
195ccf
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
195ccf
195ccf
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.12-4
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
195ccf
195ccf
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.12-3
195ccf
- Rebuild for Python 3.6
195ccf
195ccf
* Tue Dec  6 2016 Adam Williamson <awilliam@redhat.com> - 1.3.12-2
195ccf
- rebuild with reverted redhat-rpm-config to fix missing library symbols
195ccf
195ccf
* Fri Dec  2 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.12-1
195ccf
- New upstream release 1.3.12
195ccf
195ccf
* Tue Aug 30 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.11-1
195ccf
- New upstream release 1.3.11
195ccf
195ccf
* Thu Jul 28 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.10-1
195ccf
- New upstream release 1.3.10
195ccf
195ccf
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-2
195ccf
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
195ccf
195ccf
* Wed Apr 27 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.9-1
195ccf
- New upstream release 1.3.9
195ccf
195ccf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-3
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
195ccf
195ccf
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
195ccf
195ccf
* Wed Nov 11 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.8-1
195ccf
- New upstream release 1.3.8
195ccf
195ccf
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
195ccf
195ccf
* Wed Jul 22 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.7-1
195ccf
- New upstream release 1.3.7
195ccf
- Build Python3 bindings
195ccf
195ccf
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
195ccf
195ccf
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.6-1
195ccf
- New upstream release 1.3.6
195ccf
195ccf
* Wed Apr 29 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.5-1
195ccf
- New upstream release 1.3.5
195ccf
195ccf
* Mon Jan  5 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.4-1
195ccf
- New upstream release 1.3.4
195ccf
195ccf
* Fri Dec  5 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.3-1
195ccf
- New upstream release 1.3.3
195ccf
195ccf
* Thu Sep 18 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.1-1
195ccf
- New upstream release 1.3.1
195ccf
195ccf
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-4
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
195ccf
195ccf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
195ccf
195ccf
* Fri May 23 2014 Adam Williamson <awilliam@redhat.com> - 1.3.0-2
195ccf
- add a missing include to tdb.h (fixes builds against libtdb) (BSO #10625)
195ccf
195ccf
* Fri May 23 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.0-1
195ccf
- New upstream release 1.3.0
195ccf
195ccf
* Thu Mar 20 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.2.13-1
195ccf
- New upstream release 1.2.13
195ccf
195ccf
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.12-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
195ccf
195ccf
* Tue Jun 04 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.2.12-1
195ccf
- New upstream release 1.2.12
195ccf
195ccf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.11-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
195ccf
195ccf
* Sat Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.2.11-1
195ccf
- New upstream release 1.2.11
195ccf
195ccf
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-16
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
195ccf
195ccf
* Tue May 22 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.2.10-15
195ccf
- New upstream release 1.2.10
195ccf
- Remove upstreamed patches
195ccf
- Provides functionality for the upcoming Samba 4 beta
195ccf
195ccf
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-14
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
195ccf
195ccf
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-13
195ccf
- Add patch to ignore --disable-silent-rules
195ccf
- Include README documentation
195ccf
195ccf
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-12
195ccf
- Add explicit mention of the bundled libreplace
195ccf
- https://fedorahosted.org/fpc/ticket/120
195ccf
195ccf
195ccf
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-11
195ccf
- Rebuild for F17 due to bz#744766
195ccf
195ccf
* Tue Apr  5 2011 Simo Sorce <ssorce@redhat.com> - 1.2.9-9
195ccf
- Add patch to limit database expansion, was causing OOMs in SSSD in some
195ccf
  extreme situations.
195ccf
195ccf
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
195ccf
195ccf
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
195ccf
- Actually fix the verbosity
195ccf
195ccf
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
195ccf
- Let rpmbuild strip binaries, make build more verbose.
195ccf
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
195ccf
195ccf
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
195ccf
- Install python bindings into the correct location
195ccf
195ccf
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
195ccf
- Run ldconfig on python-tdb
195ccf
195ccf
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
195ccf
- Do not delete a necessary file during %%install
195ccf
195ccf
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
195ccf
- Bump release to rebuild with the correct sources in place
195ccf
195ccf
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
195ccf
- Bump build to rebuild with sources in place
195ccf
195ccf
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
195ccf
- New upstream bugfix release
195ccf
- Adds a new tdbrestore utility
195ccf
- Convert to new WAF build-system
195ccf
- Add python bindings in new python-tdb subpackage
195ccf
195ccf
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
195ccf
- add missing build require
195ccf
195ccf
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
195ccf
- Fix spec file
195ccf
- Package manpages too
195ccf
195ccf
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
195ccf
- New upstream bugfix release
195ccf
195ccf
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
195ccf
- New upstream release
195ccf
195ccf
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
195ccf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
195ccf
195ccf
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
195ccf
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
195ccf
  upstream.
195ccf
195ccf
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
195ccf
- New upstream release
195ccf
195ccf
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
195ccf
- First public independent release from upstream