From 72ddbffbd0b2b46eb14844fda8bd74430d411b5a Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Tue, 20 Feb 2024 14:08:14 +0100 Subject: [PATCH] Fix building after bash-completion repackaging See also https://github.com/rpm-software-management/dnf5/issues/1252. Resolves: RHEL-38831 --- dnf.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnf.spec b/dnf.spec index 99f3b3e..83f0cbf 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