From 106f86a61718cd1f47d5ed30ebb3ce31ecb2ade9 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 11 Oct 2018 16:52:32 +0300 Subject: [PATCH] Cleanup more 10+ year old cruft: - Drop duplicate BDB buildrequire - Drop nowadays unnecessary BDB macro foo - Drop nowadays unnecessary manual libcap dependency Relevant and necessary in their day, but not anymore. --- rpm.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/rpm.spec b/rpm.spec index 3fd0e0b..afb493d 100644 --- a/rpm.spec +++ b/rpm.spec @@ -23,14 +23,12 @@ %global rpmver 4.14.2 #global snapver rc2 -%global rel 5 +%global rel 6 %global srcver %{version}%{?snapver:-%{snapver}} %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x} -%define bdbname libdb %define bdbver 5.3.15 -%define dbprefix db # Build-dependency on systemd for the sake of one macro would be a bit much... %{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d} @@ -44,8 +42,6 @@ Url: http://www.rpm.org/ Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2 %if %{with int_bdb} Source1: db-%{bdbver}.tar.gz -%else -BuildRequires: libdb-devel %endif # Disable autoconf config.site processing (#962837) @@ -77,13 +73,13 @@ License: GPLv2+ Requires: coreutils %if %{without int_bdb} # db recovery tools, rpmdb_util symlinks -Requires: %{_bindir}/%{dbprefix}_stat +Requires: %{_bindir}/db_stat %endif Requires: popt%{_isa} >= 1.10.2.1 Requires: curl %if %{without int_bdb} -BuildRequires: %{bdbname}-devel +BuildRequires: libdb-devel %endif %if %{with check} @@ -154,9 +150,6 @@ Summary: Libraries for manipulating RPM packages Group: Development/Libraries License: GPLv2+ and LGPLv2+ with exceptions Requires: %{name} = %{version}-%{release} -# librpm uses cap_compare, introduced sometimes between libcap 2.10 and 2.16. -# A manual require is needed, see #505596 -Requires: libcap%{_isa} >= 2.16 # Drag in SELinux support at least for transition phase %if %{with plugins} && 0%{?fedora} < 28 Requires: rpm-plugin-selinux%{_isa} = %{version}-%{release} @@ -426,7 +419,7 @@ mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d %if %{without int_bdb} for dbutil in dump load recover stat upgrade verify do - ln -s ../../bin/%{dbprefix}_${dbutil} $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_${dbutil} + ln -s ../../bin/db_${dbutil} $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_${dbutil} done %endif @@ -586,6 +579,11 @@ make check || cat tests/rpmtests.log %doc doc/librpm/html/* %changelog +* Thu Oct 11 2018 Panu Matilainen - 4.14.2-6 +- Drop duplicate BDB buildrequire +- Drop nowadays unnecessary BDB macro foo +- Drop nowadays unnecessary manual libcap dependency + * Thu Oct 11 2018 Panu Matilainen - 4.14.2-5 - Own all rpmdb files and ensure the list remains up to date - Drop redundant verify exclusions on rpmdb ghosts