Blame SPECS/libtdb.spec

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