public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Cleanup more 10+ year old cruft:
Date: Mon, 23 Nov 2026 09:32:07 GMT	[thread overview]
Message-ID: <179542632788.1.6859778111925996184.rpms-rpm-106f86a61718@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 106f86a61718cd1f47d5ed30ebb3ce31ecb2ade9
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2018-10-11T16:53:06+03:00
            Stats  : +9/-11 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/106f86a61718cd1f47d5ed30ebb3ce31ecb2ade9?branch=pmatilai-v6

            Log:
            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.

---
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 <pmatilai@redhat.com> - 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 <pmatilai@redhat.com> - 4.14.2-5
 - Own all rpmdb files and ensure the list remains up to date
 - Drop redundant verify exclusions on rpmdb ghosts

                 reply	other threads:[~2026-11-23  9:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542632788.1.6859778111925996184.rpms-rpm-106f86a61718@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox