Blame SPECS/libtdb.spec

58cee9
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
58cee9
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
58cee9
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
58cee9
%endif
58cee9
%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")}
58cee9
58cee9
Name: libtdb
fd591b
Version: 1.3.12
fd591b
Release: 2%{?dist}
58cee9
Group: System Environment/Daemons
58cee9
Summary: The tdb library
58cee9
License: LGPLv3+
58cee9
URL: http://tdb.samba.org/
58cee9
Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
58cee9
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
58cee9
58cee9
BuildRequires: autoconf
58cee9
BuildRequires: libxslt
58cee9
BuildRequires: docbook-style-xsl
58cee9
BuildRequires: python-devel
58cee9
58cee9
Provides: bundled(libreplace)
58cee9
58cee9
# Patches
fd591b
Patch0001: 0001-waf-disable-python-align-tdb-s-wscript.patch
fd591b
Patch0002: 0002-tdb-tools-add-documentation-for-the-tdbbackup-n-opti.patch
fd591b
Patch0003: 0003-tdb-Fix-some-signed-unsigned-hickups.patch
fd591b
Patch0004: 0004-tdb-Do-lock-upgrades-properly.patch
fd591b
Patch0005: 0005-tdb-Test-for-readonly-lock-upgrade-bug.patch
fd591b
Patch0006: 0006-tdbtool-Add-storehex-command.patch
fd591b
Patch0007: 0007-tdb-runtime-check-for-robust-mutexes-may-hang-in-thr.patch
fd591b
Patch0008: 0008-tdb-Improve-debugging-when-the-allrecord-lock-fails-.patch
fd591b
Patch0009: 0009-tdb-Improve-debugging-in-_tdb_transaction_start.patch
58cee9
58cee9
%description
58cee9
A library that implements a trivial database.
58cee9
58cee9
%package devel
58cee9
Group: Development/Libraries
58cee9
Summary: Header files need to link the Tdb library
58cee9
Requires: libtdb = %{version}-%{release}
58cee9
Requires: pkgconfig
58cee9
58cee9
%description devel
58cee9
Header files needed to develop programs that link against the Tdb library.
58cee9
58cee9
%package -n tdb-tools
58cee9
Group: Development/Libraries
58cee9
Summary: Developer tools for the Tdb library
58cee9
Requires: libtdb = %{version}-%{release}
58cee9
58cee9
%description -n tdb-tools
58cee9
Tools to manage Tdb files
58cee9
58cee9
%package -n python-tdb
58cee9
Group: Development/Libraries
58cee9
Summary: Python bindings for the Tdb library
58cee9
Requires: libtdb = %{version}-%{release}
58cee9
58cee9
%description -n python-tdb
58cee9
Python bindings for libtdb
58cee9
58cee9
%prep
58cee9
%setup -q -n tdb-%{version}
58cee9
fd591b
for p in %patches ; do
fd591b
    %__patch -p3 -i $p
fd591b
done
fd591b
fd591b
58cee9
%build
58cee9
%configure --disable-rpath \
58cee9
           --bundled-libraries=NONE \
58cee9
           --builtin-libraries=replace
58cee9
make %{?_smp_mflags} V=1
58cee9
58cee9
%install
58cee9
rm -rf $RPM_BUILD_ROOT
58cee9
58cee9
make install DESTDIR=$RPM_BUILD_ROOT
58cee9
58cee9
# Shared libraries need to be marked executable for
58cee9
# rpmbuild to strip them and include them in debuginfo
58cee9
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
58cee9
58cee9
rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
58cee9
58cee9
%clean
58cee9
rm -rf $RPM_BUILD_ROOT
58cee9
58cee9
%files
58cee9
%defattr(-,root,root,-)
58cee9
%{_libdir}/libtdb.so.*
58cee9
58cee9
%files devel
58cee9
%defattr(-,root,root)
58cee9
%doc docs/README
58cee9
%{_includedir}/tdb.h
58cee9
%{_libdir}/libtdb.so
58cee9
%{_libdir}/pkgconfig/tdb.pc
58cee9
58cee9
%files -n tdb-tools
58cee9
%defattr(-,root,root,-)
58cee9
%{_bindir}/tdbbackup
58cee9
%{_bindir}/tdbdump
58cee9
%{_bindir}/tdbtool
58cee9
%{_bindir}/tdbrestore
58cee9
%{_mandir}/man8/tdbbackup.8*
58cee9
%{_mandir}/man8/tdbdump.8*
58cee9
%{_mandir}/man8/tdbtool.8*
58cee9
%{_mandir}/man8/tdbrestore.8*
58cee9
58cee9
%files -n python-tdb
58cee9
%defattr(-,root,root,-)
58cee9
%{python_sitearch}/tdb.so
f4fd57
%{python_sitearch}/_tdb_text.py*
58cee9
58cee9
%post -p /sbin/ldconfig
58cee9
58cee9
%postun -p /sbin/ldconfig
58cee9
58cee9
%post -n python-tdb -p /sbin/ldconfig
58cee9
58cee9
%postun -n python-tdb -p /sbin/ldconfig
58cee9
58cee9
%changelog
fd591b
* Tue May  2 2017 Jakub Hrozek <jhrozek@redhat.com> - 1.3.12-2
fd591b
- Resolves: rhbz#1441231 - The tdb robust mutexes runtime check is not thread safe and ends in a deadlock
fd591b
fd591b
* Tue Feb 14 2017 Jakub Hrozek <jhrozek@redhat.com> - 1.3.12-1
fd591b
- Resolves: rhbz#1393812 - Rebase libtevent in RHEL-7.4 to version 4.6.x
fd591b
f4fd57
* Fri Apr  1 2016 Jakub Hrozek <jhrozek@redhat.com> - 1.3.8-1
f4fd57
- Rebase libtdb to 1.3.8
fd591b
- Related: rhbz#1322691
f4fd57
f2e2f8
* Wed Aug 19 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.6-2
f2e2f8
- Resolves: rhbz#1241015 - tdb deadlocks if you acquire allrecord_lock
f2e2f8
                           and start two traverses
f2e2f8
f2e2f8
* Sun Jun 14 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.6-1
f2e2f8
- Resolves: rhbz#1226048 - Rebase libtdb to at least 1.3.4 in RHEL-7.2
f2e2f8
f2e2f8
* Wed Jun  3 2015 Jakub Hrozek <jhrozek@redhat.com> - 1.3.5-1
f2e2f8
- Resolves: rhbz#1226048 - Rebase libtdb to at least 1.3.4 in RHEL-7.2
f2e2f8
fb78f9
* Thu Sep  4 2014 Jakub Hrozek <jhrozek@redhat.com> - 1.3.0-1
fb78f9
- Resolves: rhbz#1133915 - Rebase libtdb to version 1.3.0 or newer
fb78f9
8a3c85
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.2.12-3
8a3c85
- Mass rebuild 2014-01-24
8a3c85
8a3c85
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2.12-2
8a3c85
- Mass rebuild 2013-12-27
8a3c85
58cee9
* Tue Jun 04 2013 Jakub Hrozek <jhrozek@redhat.com> - 1.2.12-1
58cee9
- New upstream release 1.2.12
58cee9
58cee9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.11-2
58cee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
58cee9
58cee9
* Sun Dec 01 2012 Jakub Hrozek <jhrozek@redhat.com> - 1.2.11-1
58cee9
- New upstream release 1.2.11
58cee9
58cee9
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.10-16
58cee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
58cee9
58cee9
* Tue May 22 2012 Stephen Gallagher <sgallagh@redhat.com> - 1.2.10-15
58cee9
- New upstream release 1.2.10
58cee9
- Remove upstreamed patches
58cee9
- Provides functionality for the upcoming Samba 4 beta
58cee9
58cee9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-14
58cee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
58cee9
58cee9
* Thu Dec 01 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-13
58cee9
- Add patch to ignore --disable-silent-rules
58cee9
- Include README documentation
58cee9
58cee9
* Wed Nov 23 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-12
58cee9
- Add explicit mention of the bundled libreplace
58cee9
- https://fedorahosted.org/fpc/ticket/120
58cee9
58cee9
58cee9
* Wed Nov 09 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-11
58cee9
- Rebuild for F17 due to bz#744766
58cee9
58cee9
* Tue Apr  5 2011 Simo Sorce <ssorce@redhat.com> - 1.2.9-9
58cee9
- Add patch to limit database expansion, was causing OOMs in SSSD in some
58cee9
  extreme situations.
58cee9
58cee9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.9-9
58cee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
58cee9
58cee9
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-8
58cee9
- Actually fix the verbosity
58cee9
58cee9
* Fri Jan 14 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-7
58cee9
- Let rpmbuild strip binaries, make build more verbose.
58cee9
- Original patch by Ville Skyttä <ville.skytta@iki.fi>
58cee9
58cee9
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
58cee9
- Install python bindings into the correct location
58cee9
58cee9
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
58cee9
- Run ldconfig on python-tdb
58cee9
58cee9
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-4
58cee9
- Do not delete a necessary file during %%install
58cee9
58cee9
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-3
58cee9
- Bump release to rebuild with the correct sources in place
58cee9
58cee9
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-2
58cee9
- Bump build to rebuild with sources in place
58cee9
58cee9
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-1
58cee9
- New upstream bugfix release
58cee9
- Adds a new tdbrestore utility
58cee9
- Convert to new WAF build-system
58cee9
- Add python bindings in new python-tdb subpackage
58cee9
58cee9
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-3
58cee9
- add missing build require
58cee9
58cee9
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-2
58cee9
- Fix spec file
58cee9
- Package manpages too
58cee9
58cee9
* Wed Feb 24 2010 Simo Sorce <ssorce@redhat.com> - 1.2.1-1
58cee9
- New upstream bugfix release
58cee9
58cee9
* Tue Dec 15 2009 Simo Sorce <ssorce@redhat.com> - 1.2.0-1
58cee9
- New upstream release
58cee9
58cee9
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.5-2
58cee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
58cee9
58cee9
* Wed Jun 17 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-1
58cee9
- Original tarballs had a screw-up, rebuild with new fixed tarballs from
58cee9
  upstream.
58cee9
58cee9
* Tue Jun 16 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
58cee9
- New upstream release
58cee9
58cee9
* Wed May 6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.3-15
58cee9
- First public independent release from upstream