From 12559aa2e88e01f723089a9b0e428d2d90e55573 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 1 Aug 2024 23:18:50 +0800 Subject: [PATCH] Enhance bash with bash-completion --- bash-completion.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bash-completion.spec b/bash-completion.spec index 1a60555..0599f91 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 -- Gitee