2012-05-30 17:35:29 +02:00
|
|
|
#
|
2012-06-28 10:51:26 +02:00
|
|
|
# spec file for package tdb
|
2012-05-30 17:35:29 +02:00
|
|
|
#
|
2022-04-04 10:30:43 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-05-30 17:35:29 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-25 16:59:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-30 17:35:29 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-05-30 20:11:24 +02:00
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2015-10-25 16:03:17 +01:00
|
|
|
%{!?py3_soflags: %global py3_soflags cpython-%{python3_version_nodots}m}
|
2012-05-30 18:11:54 +02:00
|
|
|
|
2012-06-02 16:43:53 +02:00
|
|
|
Name: tdb
|
2012-06-02 17:21:33 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2015-10-30 16:06:02 +01:00
|
|
|
BuildRequires: doxygen
|
2012-06-02 17:21:33 +02:00
|
|
|
BuildRequires: libxslt
|
2014-05-23 22:11:37 +02:00
|
|
|
BuildRequires: pkg-config
|
2015-10-25 16:03:17 +01:00
|
|
|
BuildRequires: python3-devel
|
2020-03-18 16:35:28 +01:00
|
|
|
URL: https://tdb.samba.org/
|
2022-04-04 10:30:43 +02:00
|
|
|
Version: 1.4.6
|
2012-05-30 17:35:29 +02:00
|
|
|
Release: 0
|
2012-06-02 16:43:53 +02:00
|
|
|
Summary: Samba Trivial Database
|
2018-09-25 16:59:13 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2017-10-03 13:23:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-26 13:22:08 +01:00
|
|
|
Source: https://download.samba.org/pub/tdb/tdb-%{version}.tar.gz
|
|
|
|
Source1: https://download.samba.org/pub/tdb/tdb-%{version}.tar.asc
|
2014-10-28 17:02:47 +01:00
|
|
|
Source2: tdb.keyring
|
2012-05-30 17:35:29 +02:00
|
|
|
Source4: baselibs.conf
|
2021-09-23 12:24:08 +02:00
|
|
|
Patch0: build_pie.patch
|
2012-05-30 17:35:29 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-10-03 13:23:12 +02:00
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB,
|
2012-05-30 17:35:29 +02:00
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
2017-10-03 13:23:12 +02:00
|
|
|
internally to keep writers from trampling on each other.
|
2012-06-02 16:43:53 +02:00
|
|
|
|
2017-10-01 13:53:32 +02:00
|
|
|
%package -n libtdb1
|
2017-10-03 13:23:12 +02:00
|
|
|
Summary: Samba Trivial Database
|
2012-06-02 16:43:53 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-10-01 13:53:32 +02:00
|
|
|
%description -n libtdb1
|
2017-10-03 13:23:12 +02:00
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB,
|
2012-06-02 16:43:53 +02:00
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
2017-10-03 13:23:12 +02:00
|
|
|
internally to keep writers from trampling on each other.
|
2012-06-02 16:43:53 +02:00
|
|
|
|
2012-05-30 17:35:29 +02:00
|
|
|
This package contains the tdb1 library.
|
|
|
|
|
2012-05-31 14:14:24 +02:00
|
|
|
%package -n libtdb-devel
|
2012-05-30 17:35:29 +02:00
|
|
|
Summary: Libraries and Header Files to Develop Programs with tdb1 Support
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-10-01 13:53:32 +02:00
|
|
|
Requires: libtdb1 = %{version}
|
2012-05-30 17:35:29 +02:00
|
|
|
Requires: pkg-config
|
|
|
|
|
2012-05-31 14:14:24 +02:00
|
|
|
%description -n libtdb-devel
|
2017-10-03 13:23:12 +02:00
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB,
|
2012-05-30 17:35:29 +02:00
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
2017-10-03 13:23:12 +02:00
|
|
|
internally to keep writers from trampling on each other.
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
This package contains libraries and header files need for development.
|
|
|
|
|
|
|
|
%package -n tdb-tools
|
|
|
|
Summary: Tools to manipulate tdb files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n tdb-tools
|
2017-10-03 13:23:12 +02:00
|
|
|
TDB is a Trivial Database. In concept, it is very much like GDBM, and BSD's DB,
|
2012-05-30 17:35:29 +02:00
|
|
|
except that it allows multiple simultaneous writers and uses locking
|
2017-10-03 13:23:12 +02:00
|
|
|
internally to keep writers from trampling on each other.
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
This package contains tools to manage Tdb files.
|
|
|
|
|
2015-10-25 16:03:17 +01:00
|
|
|
%package -n python3-tdb
|
|
|
|
Summary: Python3 bindings for the Tdb library
|
|
|
|
Group: Development/Libraries/Python
|
2017-10-01 13:53:32 +02:00
|
|
|
Requires: libtdb1 = %{version}
|
2019-04-22 19:09:40 +02:00
|
|
|
Obsoletes: python-tdb
|
2015-10-25 16:03:17 +01:00
|
|
|
|
|
|
|
%description -n python3-tdb
|
2017-10-03 13:23:12 +02:00
|
|
|
This package contains the Python3 bindings for the Tdb library.
|
2015-10-25 16:03:17 +01:00
|
|
|
|
2012-05-30 17:35:29 +02:00
|
|
|
%prep
|
|
|
|
%setup -n tdb-%{version} -q
|
2021-09-23 12:24:08 +02:00
|
|
|
%autopatch -p1
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
%build
|
2017-10-03 13:23:12 +02:00
|
|
|
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DIDMAP_RID_SUPPORT_TRUSTED_DOMAINS"
|
2012-05-30 17:35:29 +02:00
|
|
|
CONFIGURE_OPTIONS="\
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--disable-rpath \
|
2015-10-30 16:06:02 +01:00
|
|
|
--disable-rpath-install \
|
|
|
|
--disable-silent-rules \
|
2012-05-30 17:35:29 +02:00
|
|
|
--bundled-libraries=NONE \
|
|
|
|
"
|
|
|
|
./configure ${CONFIGURE_OPTIONS}
|
2017-10-03 13:23:12 +02:00
|
|
|
make %{?_smp_mflags} \
|
2012-05-30 17:35:29 +02:00
|
|
|
all
|
2015-10-30 16:06:02 +01:00
|
|
|
doxygen doxy.config
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
%check
|
2012-06-28 10:51:26 +02:00
|
|
|
%if 0%{!?qemu_user_space_build:1}
|
2017-10-03 13:23:12 +02:00
|
|
|
make test
|
2012-06-28 10:51:26 +02:00
|
|
|
%endif
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
%install
|
2017-10-03 13:23:12 +02:00
|
|
|
%make_install
|
2015-10-30 16:06:02 +01:00
|
|
|
# Install API documentation
|
2017-10-03 13:23:12 +02:00
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man3/
|
|
|
|
cp -a docs/man/man3/tdb.3 %{buildroot}/%{_mandir}/man3/
|
2012-05-30 17:35:29 +02:00
|
|
|
|
2017-10-01 13:53:32 +02:00
|
|
|
%post -n libtdb1 -p /sbin/ldconfig
|
2012-05-30 17:35:29 +02:00
|
|
|
|
2017-10-01 13:53:32 +02:00
|
|
|
%postun -n libtdb1 -p /sbin/ldconfig
|
2012-05-30 17:35:29 +02:00
|
|
|
|
2017-10-01 13:53:32 +02:00
|
|
|
%files -n libtdb1
|
2012-05-30 17:35:29 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libtdb.so.*
|
|
|
|
|
2012-05-31 14:14:24 +02:00
|
|
|
%files -n libtdb-devel
|
2012-05-30 17:35:29 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/tdb.h
|
|
|
|
%{_libdir}/libtdb.so
|
|
|
|
%{_libdir}/pkgconfig/tdb.pc
|
2015-10-30 16:06:02 +01:00
|
|
|
%{_mandir}/man3/tdb.3.*
|
2012-05-30 17:35:29 +02:00
|
|
|
|
|
|
|
%files -n tdb-tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/tdbbackup
|
|
|
|
%{_bindir}/tdbdump
|
|
|
|
%{_bindir}/tdbrestore
|
|
|
|
%{_bindir}/tdbtool
|
|
|
|
%{_mandir}/man8/tdbbackup.8*
|
|
|
|
%{_mandir}/man8/tdbdump.8*
|
|
|
|
%{_mandir}/man8/tdbrestore.8*
|
|
|
|
%{_mandir}/man8/tdbtool.8*
|
|
|
|
|
2015-10-25 16:03:17 +01:00
|
|
|
%files -n python3-tdb
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python3_sitearch}/tdb.%{py3_soflags}.so
|
|
|
|
%{python3_sitearch}/_tdb_text.py
|
2015-10-25 18:14:54 +01:00
|
|
|
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599
|
|
|
|
%{python3_sitearch}/__pycache__/_tdb_text.cpython-*.py[co]
|
|
|
|
%endif
|
2015-10-25 16:03:17 +01:00
|
|
|
|
2012-05-30 17:35:29 +02:00
|
|
|
%changelog
|