diff --git a/dnf5.spec b/dnf5.spec index 7a9a7cc10..4ce349904 100644 --- a/dnf5.spec +++ b/dnf5.spec @@ -118,7 +118,11 @@ Provides: dnf5-command(makecache) # ========== build requires ========== +%if 0%{?fedora} > 40 || 0 %{?rhel} > 10 +BuildRequires: bash-completion-devel +%else BuildRequires: bash-completion +%endif BuildRequires: cmake BuildRequires: doxygen BuildRequires: gettext