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