From 3dbda44ee9c660ea93fe03fa818441265a62250f Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Tue, 20 Feb 2024 13:00:30 +0000 Subject: [PATCH] build: Adapt to changes in Fedora packaging of bash-completion See also https://github.com/rpm-software-management/dnf5/issues/1252. --- dnf.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnf.spec b/dnf.spec index 31ecd7f64e..33bfb28ac1 100644 --- a/dnf.spec +++ b/dnf.spec @@ -79,7 +79,11 @@ BuildRequires: cmake BuildRequires: gettext # Documentation BuildRequires: systemd +%if 0%{?fedora} > 40 || 0%{?rhel} > 10 +BuildRequires: bash-completion-devel +%else BuildRequires: bash-completion +%endif BuildRequires: %{_bindir}/sphinx-build-3 Requires: python3-%{name} = %{version}-%{release} %if 0%{?rhel} && 0%{?rhel} <= 7