%def_enable tests
%def_without python3
Name: libtdb
Version: 1.3.10
Release: alt0.M70P.1
Summary: A trivial database system
License: GPL
Group: System/Libraries
Url: http://tdb.samba.org/
Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
BuildRequires: docbook-dtds docbook-style-xsl xsltproc
BuildRequires: rpm-build-python python-devel
%if_with python3
BuildRequires: rpm-build-python3 python3-devel
%endif
%description
This is a simple database API. It was inspired by the realisation that
in Samba we have several ad-hoc bits of code that essentially
implement small databases for sharing structures between parts of
Samba. As I was about to add another I realised that a generic
database module was called for to replace all the ad-hoc bits.
I based the interface on gdbm. I couldn't use gdbm as we need to be
able to have multiple writers to the databases at one time.
(I == tridge@samba.org)
This is the primary library.
%package -n tdb-utils
Summary: a trivial database system utils
Group: Databases
Requires: %name = %version-%release
%description -n tdb-utils
This is a simple database API. It was inspired by the realisation that
in Samba we have several ad-hoc bits of code that essentially
implement small databases for sharing structures between parts of
Samba. As I was about to add another I realised that a generic
database module was called for to replace all the ad-hoc bits.
I based the interface on gdbm. I couldn't use gdbm as we need to be
able to have multiple writers to the databases at one time.
(I == tridge@samba.org)
This package contains some utils for managing tdb databases
%package devel
Summary: a trivial database system development files
Group: Development/C
Requires: %name = %version-%release
%description devel
This is a simple database API. It was inspired by the realisation that
in Samba we have several ad-hoc bits of code that essentially
implement small databases for sharing structures between parts of
Samba. As I was about to add another I realised that a generic
database module was called for to replace all the ad-hoc bits.
I based the interface on gdbm. I couldn't use gdbm as we need to be
able to have multiple writers to the databases at one time.
(I == tridge@samba.org)
These are the development files.
%package -n python-module-tdb
Group: Development/Python
Summary: Python bindings for the Tdb library
Requires: %name = %version-%release
%description -n python-module-tdb
Python bindings for libtdb
%if_with python3
%package -n python3-module-tdb
Group: Development/Python3
Summary: Python3 bindings for the Tdb library
Requires: %name = %version-%release
%description -n python3-module-tdb
Python3 bindings for libtdb
%endif
%prep
%setup -n tdb-%version
%build
%undefine _configure_gettext
%configure --disable-rpath \
%if_with python3
--extra-python=python3 \
%endif
--bundled-libraries=NONE \
--builtin-libraries=replace
%make_build
%install
%makeinstall_std
rm -f %buildroot%_libdir/libtdb.a
%if_enabled tests
%check
make test
%endif
%files
%_libdir/libtdb.so.*
%doc docs/README
%files -n tdb-utils
%_bindir/*
%_man8dir/*
%files devel
%_libdir/libtdb.so
%_includedir/tdb.h
%_pkgconfigdir/tdb.pc
%files -n python-module-tdb
%python_sitelibdir/tdb.so
%python_sitelibdir/_tdb_text.py*
%if_with python3
%files -n python3-module-tdb
%python3_sitelibdir/tdb.so
%endif
%changelog
* Thu Mar 23 2017 Evgeny Sinelnikov <sin@altlinux.ru> 1.3.10-alt0.M70P.1
- Backport to p7 branch
* Thu Sep 15 2016 Andrey Cherepanov <cas@altlinux.org> 1.3.10-alt0.M80P.1
- Backport to p8 branch
* Fri Sep 09 2016 Evgeny Sinelnikov <sin@altlinux.ru> 1.3.10-alt1
- Update to release for samba-4.5.0
* Wed Apr 13 2016 Andrey Cherepanov <cas@altlinux.org> 1.3.9-alt0.M70P.1
- Backport new version to p7 branch
* Tue Apr 12 2016 Andrey Cherepanov <cas@altlinux.org> 1.3.9-alt1
- 1.3.9
* Sun Mar 13 2016 Andrey Cherepanov <cas@altlinux.org> 1.3.8-alt2
- Rebuild with new libtalloc
* Thu Dec 03 2015 Andrey Cherepanov <cas@altlinux.org> 1.3.8-alt0.M70P.1
- Backport new version to p7 branch
* Fri Nov 13 2015 Andrey Cherepanov <cas@altlinux.org> 1.3.8-alt1
- 1.3.8
- Enable tests
- Rename from tdb to libtdb
- Optional build python3 module (disaled by default)
* Tue Aug 18 2015 Alexey Shabalin <shaba@altlinux.ru> 1.3.7-alt1
- 1.3.7
* Wed Jul 15 2015 Alexey Shabalin <shaba@altlinux.ru> 1.3.6-alt1
- 1.3.6
* Mon Jan 12 2015 Alexey Shabalin <shaba@altlinux.ru> 1.3.4-alt1
- 1.3.4
* Mon Dec 15 2014 Alexey Shabalin <shaba@altlinux.ru> 1.3.3-alt1
- 1.3.3
* Mon Sep 22 2014 Alexey Shabalin <shaba@altlinux.ru> 1.3.1-alt1
- 1.3.1
* Tue Jun 10 2014 Alexey Shabalin <shaba@altlinux.ru> 1.3.0-alt2
- fixed https://bugzilla.samba.org/show_bug.cgi?id=10625
* Wed Jun 04 2014 Alexey Shabalin <shaba@altlinux.ru> 1.3.0-alt1
- 1.3.0
* Mon Mar 24 2014 Alexey Shabalin <shaba@altlinux.ru> 1.2.13-alt1
- 1.2.13
* Wed Jul 03 2013 Alexey Shabalin <shaba@altlinux.ru> 1.2.12-alt1
- 1.2.12
* Tue Dec 04 2012 Alexey Shabalin <shaba@altlinux.ru> 1.2.11-alt1
- 1.2.11
* Thu Jul 26 2012 Alexey Shabalin <shaba@altlinux.ru> 1.2.10-alt1
- 1.2.10
* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.2.9-alt1.1
- Rebuild with Python-2.7
* Wed Mar 09 2011 Alexey Shabalin <shaba@altlinux.ru> 1.2.9-alt1
- 1.2.9
- Add python bindings in new python-module-tdb subpackage
* Fri Aug 13 2010 Alexey Shabalin <shaba@altlinux.ru> 1.2.1-alt1
- 1.2.1
* Mon Aug 24 2009 Yuri N. Sedunov <aris@altlinux.org> 1.1.5-alt1
- 1.1.5
* Sat Nov 05 2005 Nick S. Grechukh <gns@altlinux.org> 1.0.6-alt3
- initial build for Sisyphus
* Mon Dec 10 2001 Ben Woodard <ben@zork.net>
- Bumped up the version number
- changed email addrs.
* Thu May 23 2001 Jonathon D Nelson <jnelson@securepipe.com>
- Created redhat packages.