public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Add a bcond to build with external debugedit
@ 2026-11-23 9:33 Panu Matilainen
0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23 9:33 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:33 [rpms/rpm] pmatilai-v6: Add a bcond to build with external debugedit Panu Matilainen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox