Name: libtdb Version: 1.4.12 Release: %autorelease Summary: The tdb library License: LGPL-3.0-or-later URL: http://tdb.samba.org/ Source0: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz Source1: http://samba.org/ftp/tdb/tdb-%{version}.tar.asc # gpg2 --no-default-keyring --keyring ./tdb.keyring --recv-keys 9147A339719518EE9011BCB54793916113084025 Source2: tdb.keyring BuildRequires: make BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: libxslt BuildRequires: docbook-style-xsl BuildRequires: python3-devel Provides: bundled(libreplace) Obsoletes: python2-tdb < 1.4.2-1 %description A library that implements a trivial database. %package devel Summary: Header files need to link the Tdb library Requires: libtdb = %{version}-%{release} %description devel Header files needed to develop programs that link against the Tdb library. %package -n tdb-tools Summary: Developer tools for the Tdb library Requires: libtdb = %{version}-%{release} %description -n tdb-tools Tools to manage Tdb files %package -n python3-tdb Summary: Python3 bindings for the Tdb library Requires: libtdb = %{version}-%{release} %{?python_provide:%python_provide python3-tdb} %description -n python3-tdb Python3 bindings for libtdb %prep %autosetup -n tdb-%{version} -p1 %build zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} - %configure --disable-rpath \ --bundled-libraries=NONE \ --builtin-libraries=replace %make_build %check %make_build check %install %make_install %files %{_libdir}/libtdb.so.* %files devel %doc docs/README %{_includedir}/tdb.h %{_libdir}/libtdb.so %{_libdir}/pkgconfig/tdb.pc %files -n tdb-tools %{_bindir}/tdbbackup %{_bindir}/tdbdump %{_bindir}/tdbtool %{_bindir}/tdbrestore %{_mandir}/man8/tdbbackup.8* %{_mandir}/man8/tdbdump.8* %{_mandir}/man8/tdbtool.8* %{_mandir}/man8/tdbrestore.8* %files -n python3-tdb %{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co] %{python3_sitearch}/tdb.cpython*.so %{python3_sitearch}/_tdb_text.py %ldconfig_scriptlets %changelog %autochangelog