public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Simone Caronni <negativo17@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dpkg] epel10.2: Do not ship bash completions provided by bash-completion < 2.18
Date: Mon, 02 Nov 2026 09:37:01 GMT [thread overview]
Message-ID: <179361222170.1.17831746508591231685.rpms-dpkg-e6278d14e4ab@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/dpkg
Branch : epel10.2
Commit : e6278d14e4abda3f96451df3c44de9945beff02b
Author : Simone Caronni <negativo17@gmail.com>
Date : 2026-11-02T10:35:35+01:00
Stats : +20/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/dpkg/c/e6278d14e4abda3f96451df3c44de9945beff02b?branch=epel10.2
Log:
Do not ship bash completions provided by bash-completion < 2.18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---
diff --git a/dpkg.spec b/dpkg.spec
index 57a9eab..9c17b69 100644
--- a/dpkg.spec
+++ b/dpkg.spec
@@ -1,6 +1,15 @@
%global pkgconfdir %{_sysconfdir}/dpkg
%global pkgdatadir %{_datadir}/dpkg
+# bash-completion < 2.18 ships its own completions for dpkg, dpkg-deb,
+# dpkg-query, dpkg-source and dselect. Starting with 2.18 (Fedora 45) they are
+# only used as a fallback when the dpkg ones are not installed.
+%if (0%{?fedora} && 0%{?fedora} < 45) || 0%{?rhel} == 10
+%bcond bash_completion 0
+%else
+%bcond bash_completion 1
+%endif
+
Name: dpkg
Version: 1.23.11
Release: %autorelease
@@ -236,6 +245,11 @@ done
rm %{buildroot}%{_libdir}/libdpkg.la
+%if %{without bash_completion}
+# Conflicts with the files provided by bash-completion
+rm %{buildroot}%{bash_completions_dir}/{dpkg,dpkg-deb,dpkg-query,dpkg-source,dselect}
+%endif
+
%check
make TEST_PARALLEL=%{_smp_build_ncpus} check
@@ -270,9 +284,11 @@ make TEST_PARALLEL=%{_smp_build_ncpus} check
%dir %{_libexecdir}/dpkg
%{_libexecdir}/dpkg/dpkg-db-backup
%{_libexecdir}/dpkg/dpkg-db-keeper
+%if %{with bash_completion}
%{bash_completions_dir}/dpkg
%{bash_completions_dir}/dpkg-deb
%{bash_completions_dir}/dpkg-query
+%endif
%{bash_completions_dir}/start-stop-daemon
%{_mandir}/man1/dpkg.1*
%{_mandir}/man1/dpkg-deb.1*
@@ -322,7 +338,9 @@ make TEST_PARALLEL=%{_smp_build_ncpus} check
%{_bindir}/dpkg-shlibdeps
%{_bindir}/dpkg-source
%{_bindir}/dpkg-vendor
+%if %{with bash_completion}
%{bash_completions_dir}/dpkg-source
+%endif
%{zsh_completions_dir}/_dpkg-parsechangelog
%{_mandir}/man1/dpkg-architecture.1*
%{_mandir}/man1/dpkg-buildapi.1*
@@ -382,7 +400,9 @@ make TEST_PARALLEL=%{_smp_build_ncpus} check
%files -n dselect -f dselect.lang
%config(noreplace) %{pkgconfdir}/dselect.cfg
%{_bindir}/dselect
+%if %{with bash_completion}
%{bash_completions_dir}/dselect
+%endif
%{perl_vendorlib}/Dselect
%{_libexecdir}/dpkg/methods
%{_localstatedir}/lib/dpkg/methods
reply other threads:[~2026-11-02 9:37 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=179361222170.1.17831746508591231685.rpms-dpkg-e6278d14e4ab@fedoraproject.org \
--to=negativo17@gmail.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