From 7cd2de947cdff2961092c90badb247efba460798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Thu, 26 Sep 2024 11:41:30 +0200 Subject: [PATCH] Update to version 1.4.12 - resolves: RHEL-59782 --- .gitignore | 2 ++ libtdb.spec | 40 +++++++++++++++------------------------- sources | 4 ++-- 3 files changed, 19 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 189d589..c6e7209 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ /tdb-1.4.9.tar.asc /tdb-1.4.10.tar.gz /tdb-1.4.10.tar.asc +/tdb-1.4.12.tar.asc +/tdb-1.4.12.tar.gz diff --git a/libtdb.spec b/libtdb.spec index 2eb764d..3254810 100644 --- a/libtdb.spec +++ b/libtdb.spec @@ -1,28 +1,20 @@ -%if 0%{?fedora} || 0%{?rhel} > 7 -%global with_python3 1 -%endif - -Name: libtdb -Version: 1.4.10 -Release: 2%{?dist} -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 +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 - -# Patches +Source2: tdb.keyring BuildRequires: make BuildRequires: gcc BuildRequires: gnupg2 BuildRequires: libxslt BuildRequires: docbook-style-xsl -%if 0%{?with_python3} BuildRequires: python3-devel -%endif Provides: bundled(libreplace) Obsoletes: python2-tdb < 1.4.2-1 @@ -30,21 +22,22 @@ 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 +%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 +Summary: Developer tools for the Tdb library + 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,7 +45,6 @@ Requires: libtdb = %{version}-%{release} %description -n python3-tdb Python3 bindings for libtdb -%endif %prep %autosetup -n tdb-%{version} -p1 @@ -69,7 +61,7 @@ zcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} - %make_build check %install -make install DESTDIR=$RPM_BUILD_ROOT +%make_install %files %{_libdir}/libtdb.so.* @@ -90,12 +82,10 @@ 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 diff --git a/sources b/sources index 3e9b8c9..4212394 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (tdb-1.4.10.tar.gz) = b5147d811617d90a025d1070abf16c42744b3fc3cac1042fbff03b1e635af2eaf9c957a7bffdb3f56b4a0c775b44f8027def9f23deb1b3ede817b95bbece2ce9 -SHA512 (tdb-1.4.10.tar.asc) = 7bc9616aa6a3badba33e508777eec307de51c2abb494836677356e432036970641b53f3b7c0c207efe909194343d3554af7932412d163f59db0ec8877fd19848 +SHA512 (tdb-1.4.12.tar.gz) = f41644ae29da7fed26959e4f2e3664e58ec65681b0b7115fbb296a7a8c5642c8190dac6e16e5704b322469466dd5aa15c1f7f72df8226ac9c695b5b10ac85b66 +SHA512 (tdb-1.4.12.tar.asc) = a621e9b9f70f6cd03b5a15fdae84a9f4748d0a536219a3e5b869393c074b91c0e0cbb030f57330dbeb1b394b02c938f9b7471fc3e5477b4497b695a9e9b5b123