Fix building after bash-completion repackaging

See also https://github.com/rpm-software-management/dnf5/issues/1252.

Resolves: RHEL-38831
This commit is contained in:
Jan Kolarik 2024-02-20 14:08:14 +01:00 committed by Petr Písař
parent a129b7e144
commit 72ddbffbd0

View File

@ -79,7 +79,11 @@ BuildRequires: cmake
BuildRequires: gettext BuildRequires: gettext
# Documentation # Documentation
BuildRequires: systemd BuildRequires: systemd
%if 0%{?fedora} > 40 || 0%{?rhel} > 10
BuildRequires: bash-completion-devel
%else
BuildRequires: bash-completion BuildRequires: bash-completion
%endif
BuildRequires: %{_bindir}/sphinx-build-3 BuildRequires: %{_bindir}/sphinx-build-3
Requires: python3-%{name} = %{version}-%{release} Requires: python3-%{name} = %{version}-%{release}
%if 0%{?rhel} && 0%{?rhel} <= 7 %if 0%{?rhel} && 0%{?rhel} <= 7