bash-completion ships pkgconfig and cmake files in the main bash-completion package. It's not clear they do anything as part of the core functionality but as a result (in partiicular the bash-completion.pc) the package pulls in other dependencies which in a lot of usecases superfluous to requirements. Is there a reason they're not in a -devel package?
See bug 1324593 - WONTFIXed Not sure if any of the circumstances around it have changed since then
I only see yum-utils mentioned there and it's no longer default or shipped.
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle. Changing version to '27'.
Still an issue
*** Bug 1324593 has been marked as a duplicate of this bug. ***
https://koji.fedoraproject.org/koji/taskinfo?taskID=113541310
https://koji.fedoraproject.org/koji/taskinfo?taskID=113542847
Perhaps this should have been coordinated with the impacted packages. $ rg 'pkg-config.+--variable=completionsdir' rpm-specs/borgbackup.spec:#%define bash_compdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/breezy.spec:bashcompdir=$(pkg-config --variable=completionsdir bash-completion) rpm-specs/cmake.spec:%global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '%{_datadir}/bash-completion/completions') rpm-specs/conda.spec:%global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '/etc/bash_completion.d') rpm-specs/composer.spec:%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null) rpm-specs/cowsay.spec:%global compdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/creds.spec:%global bashcompdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/datamash.spec:pkg-config --variable=completionsdir bash-completion || rpm-specs/dracut.spec: --bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) \ rpm-specs/eg.spec:bashcompdir=$(pkg-config --variable=completionsdir bash-completion || :) rpm-specs/fail2ban.spec:COMPLETIONDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion) rpm-specs/fedpkg.spec:%define compdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/git-annex.spec:bash_completion_dir=%{buildroot}$(pkg-config --variable=completionsdir bash-completion) rpm-specs/glusterfs.spec:%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null) rpm-specs/GMT.spec:%global completion_dir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/gromacs.spec:%define compdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/kim-api.spec:%global b_compdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/lynis.spec:%global bashcompdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/maxima.spec:%global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '/etc/bash_completion.d') rpm-specs/mpc.spec:%global compdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/mt-st.spec:COMPLETIONDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion) rpm-specs/ndctl.spec:%define bashcompdir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/nordugrid-arc.spec:%global _bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo %{_sysconfdir}/bash_completion.d) rpm-specs/pulseaudio.spec:%global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '/etc/bash_completion.d') rpm-specs/pybugz.spec:%global bash_cmpl_dir %(pkg-config --variable=completionsdir bash-completion) rpm-specs/python-django.spec:bashcompdir=$(pkg-config --variable=completionsdir bash-completion) rpm-specs/python-vitrageclient.spec:bashcompdir=$(pkg-config --variable=completionsdir bash-completion) rpm-specs/reptyr.spec:%define bashcomp %(pkg-config --variable=completionsdir bash-completion) rpm-specs/source-highlight.spec:bashcompdir=$(pkg-config --variable=completionsdir bash-completion) rpm-specs/tig.spec:%global bash_completion_dir %(pkg-config --variable=completionsdir bash-completion || echo /etc/bash_completion.d)/ rpm-specs/vagrant.spec:%global bashcompletion_dir %(pkg-config --variable=completionsdir bash-completion 2> /dev/null || :)
And those are just packages that invoke it directly in the spec. There are others that will fail with cryptic errors like: RPM build errors: File not found: /builddir/build/BUILDROOT/libstoragemgmt-1.9.8-6.fc41.x86_64/usr/share/bash-completion/completions/lsmcli
This is now also on the devel list: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/NG6HV2FGKWTWKXVQXR6DWCELU4ZELX5Z/