spec: Handle new location of bash-completion .pc file

On Fedora 41, bash-completion's .pc file moved to
`bash-completion-devel`.

Using `pkgconfig()` lets us handle this without distro version checks

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-02-19 11:44:53 -05:00 committed by Peter Krempa
parent cb3f1d5b29
commit 066aa232f8

View File

@ -339,7 +339,7 @@ BuildRequires: xen-devel
BuildRequires: glib2-devel >= 2.56 BuildRequires: glib2-devel >= 2.56
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: bash-completion >= 2.0 BuildRequires: pkgconfig(bash-completion) >= 2.0
BuildRequires: libtasn1-devel BuildRequires: libtasn1-devel
BuildRequires: gnutls-devel BuildRequires: gnutls-devel
BuildRequires: libattr-devel BuildRequires: libattr-devel