diff --git a/bash-completion.spec b/bash-completion.spec index a8c6b47..522b425 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -25,6 +25,7 @@ Summary: Programmable Completion for Bash Url: http://bash-completion.alioth.debian.org/ Group: System/Shells Source0: http://bash-completion.alioth.debian.org/files/%{name}-%{version}.tar.bz2 +Source1: fix_sh_completion.patch Requires: bash BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -35,6 +36,7 @@ of the programmable completion feature of Bash 2.04 and later. %prep %setup -q +%patch -p 1 %build %configure diff --git a/fix_sh_completion.patch b/fix_sh_completion.patch new file mode 100644 index 0000000..28ce41f --- /dev/null +++ b/fix_sh_completion.patch @@ -0,0 +1,11 @@ +diff -Naur a/bash_completion b/bash_completion +--- a/bash_completion 2011-02-06 20:16:00.000000000 +0100 ++++ b/bash_completion 2011-09-04 09:24:24.192387001 +0200 +@@ -124,6 +124,7 @@ + complete -f -X '!*.lyx' lyx + complete -f -X '!@(*.@(ks|jks|jceks|p12|pfx|bks|ubr|gkr|cer|crt|cert|p7b|pkipath|pem|p10|csr|crl)|cacerts)' portecle + complete -f -X '!*.@(mp[234c]|og[ag]|@(fl|a)ac|m4[abp]|spx|tta|w?(a)v|wma|aif?(f)|asf|ape)' kid3 kid3-qt ++complete -f -X '!*' sh + # FINISH exclude -- do not remove this line + + # start of section containing compspecs that can be handled within bash