diff --git a/bash-completion.spec b/bash-completion.spec index 1a60555527b28ce97548537c0c1a4d02b3be6d7b..0599f912c2249bbaf38f69ca713423f45ae2bfa4 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -3,10 +3,10 @@ Name: bash-completion Version: 2.14.0 -Release: 1 +Release: 2 Epoch: 1 Summary: Completion for bash command -License: GPLv2+ +License: GPL-2.0-or-later URL: https://github.com/scop/bash-completion Source0: https://github.com/scop/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz @@ -20,6 +20,7 @@ BuildRequires: gcc autoconf automake BuildRequires: dejagnu tcllib python3-pytest >= 3.6 Requires: bash >= 4.1 +Enhances: bash >= 4.1 %description %{name} is a collection of shell funcionts that can be @@ -42,6 +43,9 @@ sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>copy_of__filedir %install %make_install +# Updated completion shipped in cowsay package: +rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink} + install -Dp copy_of__filedir %{buildroot}%{_sysconfdir}/bash_completion.d/copy_of__filedir %check @@ -49,10 +53,8 @@ export LANG=en_US.UTF-8 make -C completions check %files -%defattr(-,root,root) %license COPYING %doc AUTHORS -%exclude %{_datadir}/%{name}/completions/cow* %config(noreplace) %{_sysconfdir}/profile.d/*.sh %{_sysconfdir}/bash_completion.d/* %{_datadir}/%{name}/* @@ -60,10 +62,12 @@ make -C completions check %{_datadir}/pkgconfig/%{name}.pc %files help -%defattr(-,root,root) %doc CHANGELOG.md README.md doc/configuration.md CONTRIBUTING.md %changelog +* Thu Aug 01 2024 Funda Wang - 1:2.14.0-2 +- Enhance bash with bash-completion + * Mon Jul 01 2024 warlcok - 1:2.14.0-1 - update to 2.14.0