From ff01a5df20f0ea94996fa3fd01a9b92aaabc3308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 19 Feb 2024 15:25:18 +0100 Subject: [PATCH] build: Adapt to changes in Fedora packaging of bash-completion Fedora 41 moved a CMake script for bash-completion from bash-completion to bash-completion-devel package . That broke building dnf5.spec: RPM build errors: Directory not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion Directory not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion/completions File not found: /builddir/build/BUILDROOT/dnf5-5.1.12-1.20240216152113944400.pr1250.22.gd9fb3e11.fc41.x86_64/usr/share/bash-completion/completions/dnf5 This adapts to the change. Fixes: #1252 --- dnf5.spec | 4 ++++ 1 file changed, 4 insertions(+) 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