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: Add a bcond to build with external debugedit
Date: Mon, 23 Nov 2026 09:33:49 GMT	[thread overview]
Message-ID: <179542642961.1.7470303695247125045.rpms-rpm-3e8fbdcf8f10@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 3e8fbdcf8f10e12610b512def084c0885cfe5e60
            Author : Panu Matilainen <pmatilai@redhat.com>
            Date   : 2021-04-26T14:30:22+03:00
            Stats  : +19/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/3e8fbdcf8f10e12610b512def084c0885cfe5e60?branch=pmatilai-v6

            Log:
            Add a bcond to build with external debugedit

In preparation to splitting debugedit to a separate project, add a
switch that we can easily flick when the time comes.

---
diff --git a/rpm.spec b/rpm.spec
index 84cd7ad..8dc45c6 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -25,12 +25,14 @@
 %bcond_without sqlite
 # build with bdb_ro support?
 %bcond_without bdb_ro
+# build with external debugedit?
+%bcond_with debugedit
 
 %define rpmhome /usr/lib/rpm
 
 %global rpmver 4.16.90
 %global snapver git15395
-%global rel 1
+%global rel 2
 %global sover 9
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -181,6 +183,9 @@ Requires: tar unzip gzip bzip2 cpio xz
 %if %{with zstd}
 Requires: zstd
 %endif
+%if %{with debugedit}
+Requires: debugedit
+%endif
 Requires: pkgconfig >= 1:0.24
 Requires: /usr/bin/gdb-add-index
 # https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
@@ -376,6 +381,10 @@ rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
 rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
 rm -rf $RPM_BUILD_ROOT/var/tmp
 
+%if %{with debugedit}
+rm -f $RPM_BUILD_ROOT/%{rpmhome}/{debugedit,sepdebugcrcfix,find-debuginfo.sh}
+%endif
+
 %if %{with check}
 %check
 make check TESTSUITEFLAGS=-j%{_smp_build_ncpus} || (cat tests/rpmtests.log; exit 1)
@@ -506,9 +515,6 @@ fi
 
 %{rpmhome}/brp-*
 %{rpmhome}/check-*
-%{rpmhome}/debugedit
-%{rpmhome}/sepdebugcrcfix
-%{rpmhome}/find-debuginfo.sh
 %{rpmhome}/find-lang.sh
 %{rpmhome}/*provides*
 %{rpmhome}/*requires*
@@ -518,6 +524,12 @@ fi
 %{rpmhome}/mkinstalldirs
 %{rpmhome}/fileattrs/*
 
+%if !%{with debugedit}
+%{rpmhome}/debugedit
+%{rpmhome}/sepdebugcrcfix
+%{rpmhome}/find-debuginfo.sh
+%endif
+
 %files sign
 %{_bindir}/rpmsign
 %{_mandir}/man8/rpmsign.8*
@@ -542,6 +554,9 @@ fi
 %doc doc/librpm/html/*
 
 %changelog
+* Mon Apr 26 2021 Panu Matilainen <pmatilai@redhat.com> - 4.16.90-0.git15395.2
+- Add a bcond to build with external debugedit
+
 * Mon Apr 26 2021 Panu Matilainen <pmatilai@redhat.com> - 4.16.90-0.git15395.1
 - Rebase to rpm 4.17.0 alpha (https://rpm.org/wiki/Releases/4.17.0)
 - Drop a local hack for a cosmetic Fedora 22 era rpm2cpio issue

                 reply	other threads:[~2026-11-23  9:33 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=179542642961.1.7470303695247125045.rpms-rpm-3e8fbdcf8f10@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