Blame SPECS/libtdb.spec

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