Compare commits

..

No commits in common. "c8" and "imports/c8/libtdb-1.4.2-2.el8" have entirely different histories.

4 changed files with 27 additions and 63 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/tdb-1.4.9.tar.gz
SOURCES/tdb.keyring
SOURCES/tdb-1.4.2.tar.gz

1
.libtdb.metadata Normal file
View File

@ -0,0 +1 @@
9a6e51cde16a2400b76448c4e7de2f87656477a2 SOURCES/tdb-1.4.2.tar.gz

View File

@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEkUejOXGVGO6QEby1R5ORYRMIQCUFAmS5EQcACgkQR5ORYRMI
QCVEJAf/fs1Nzq/ipbjmD7O4bOJ8QOWtbg3sJ5UeD7hRAtSWs0DuNlWQOXMYSXS3
kA3bjU896uWqEnkSQWdedWkOVe4TKMRYB464UMfRF4o+7mv8kf04auExMW0jQizt
ORXUID1edICT39mcXF5tWzMpdMZGYrnstd2VOKlVEDavJ3eq4EHaQrxHf+cKVvog
+9LdXUDYDjppyLjNoY8TimSmOPA7cN5O/yGorpOUsRrie9n1q6G65ZgnlYRIIKmy
FCyn9JKNGVgLeqmuANt62b0ENI0DM29pEauqIIsSEgbwDiMLu88l+jkt1n5kPKLm
p3ASZafnW7MncjtjpIzCcv5bBAfC5Q==
=UUVZ
-----END PGP SIGNATURE-----

View File

@ -1,31 +1,22 @@
%if 0%{?fedora} || 0%{?rhel} > 7
%global with_python3 1
%endif
Name: libtdb
Version: 1.4.9
Release: 0%{?dist}
Version: 1.4.2
Release: 2%{?dist}
Summary: The tdb library
License: LGPL-3.0-or-later
License: LGPLv3+
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
Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
# Patches
BuildRequires: make
BuildRequires: gcc
BuildRequires: gnupg2
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
Obsoletes: python2-tdb < %{version}-%{release}
Obsoletes: python2-tdb-debuginfo < %{version}-%{release}
Provides: bundled(libreplace)
Obsoletes: python2-tdb < 1.4.2-1
# Patches
%description
A library that implements a trivial database.
@ -33,6 +24,7 @@ A library that implements a trivial database.
%package devel
Summary: Header files need to link the Tdb library
Requires: libtdb = %{version}-%{release}
Requires: pkgconfig
%description devel
Header files needed to develop programs that link against the Tdb library.
@ -44,7 +36,6 @@ Requires: libtdb = %{version}-%{release}
%description -n tdb-tools
Tools to manage Tdb files
%if 0%{?with_python3}
%package -n python3-tdb
Summary: Python3 bindings for the Tdb library
Requires: libtdb = %{version}-%{release}
@ -52,25 +43,29 @@ Requires: libtdb = %{version}-%{release}
%description -n python3-tdb
Python3 bindings for libtdb
%endif
%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
make %{?_smp_mflags} V=1
%check
%make_build check
make %{?_smp_mflags} check
%install
make install DESTDIR=$RPM_BUILD_ROOT
# Shared libraries need to be marked executable for
# rpmbuild to strip them and include them in debuginfo
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
%files
%{_libdir}/libtdb.so.*
@ -90,40 +85,20 @@ make install DESTDIR=$RPM_BUILD_ROOT
%{_mandir}/man8/tdbtool.8*
%{_mandir}/man8/tdbrestore.8*
%if 0%{?with_python3}
%files -n python3-tdb
%{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co]
%{python3_sitearch}/tdb.cpython*.so
%{python3_sitearch}/_tdb_text.py
%endif
%ldconfig_scriptlets
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n python3-tdb -p /sbin/ldconfig
%postun -n python3-tdb -p /sbin/ldconfig
%changelog
* Fri Nov 17 2023 Pavel Filipenský <pfilipen@redhat.com> - 1.4.9-0
- resolves: RHEL-16507 - Update to version libtdb-1.4.9
* Tue Jun 06 2023 Pavel Filipenský <pfilipen@redhat.com> - 1.4.8-3
- resolves: rhbz#2190421 - Rebuild to trigger distrobaker sync
* Wed May 24 2023 Pavel Filipenský <pfilipen@redhat.com> - 1.4.8-2
- resolves: rhbz#2190421 - Add missing tests to fix osci.brew-build.tier0.functional
* Thu May 18 2023 Pavel Filipenský <pfilipen@redhat.com> - 1.4.8-1
- resolves: rhbz#2190421 - Update to version 1.4.8
* Mon Oct 24 2022 Andreas Schneider <asn@redhat.com> - 1.4.7-1
- resolves: rhbz#2132054 - Rebase to version 1.4.7
* Mon May 02 2022 Pavel Filipenský <pfilipen@redhat.com> - 1.4.6-1
- resolves: rhbz#2077482 - Rebase to version 1.4.6
* Thu Nov 25 2021 Pavel Filipenský <pfilipen@redhat.com> - 1.4.4-1
* resolves: rhbz#2013604 - Rebase to version 1.4.4
* Tue Jun 2 2020 Isaac Boukris <iboukris@redhat.com> - 1.4.3-1
- Resolves: rhbz#1817565 - Rebase libtdb 1.4.3 for samba
* Tue Nov 26 2019 Isaac Boukris <iboukris@redhat.com> - 1.4.2-2
- Resolves: rhbz#1754420 - Rebase libtdb 1.4.2 for samba
- Related: rhbz#1754420 - Fix sssd tests (tdb)