From 02bedb870229fc569af983357f61cf41464cbc8c Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Tue, 20 Feb 2024 12:58:46 +0000 Subject: [PATCH] build: Adapt to changes in Fedora packaging of bash-completion See also https://github.com/rpm-software-management/dnf5/issues/1252. --- createrepo_c.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/createrepo_c.spec b/createrepo_c.spec index 727e9707..fe3a0fc6 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -70,7 +70,11 @@ Requires: libmodulemd%{?_isa} >= %{libmodulemd_version} %endif %endif Requires: %{name}-libs = %{epoch_dep}%{version}-%{release} +%if 0%{?fedora} > 40 || 0%{?rhel} > 10 +BuildRequires: bash-completion-devel +%else BuildRequires: bash-completion +%endif Requires: rpm >= 4.9.0 %if %{with drpm} BuildRequires: drpm-devel >= 0.4.0