Blame SPECS/libtdb.spec

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