diff --git a/bash-completion-remove-python2.patch b/bash-completion-remove-python2.patch new file mode 100644 index 0000000000000000000000000000000000000000..8501568092650c121b7201ce59568b4b72893962 --- /dev/null +++ b/bash-completion-remove-python2.patch @@ -0,0 +1,70 @@ +From f13d6bc1c1675eddf148db3d0b942872aef398ec Mon Sep 17 00:00:00 2001 +From: renhongxun +Date: Mon, 20 Jun 2022 10:54:26 +0800 +Subject: [PATCH] bash-completion remove python2 + +--- + completions/Makefile.am | 4 +--- + completions/Makefile.in | 4 +--- + completions/python | 2 +- + 3 files changed, 3 insertions(+), 7 deletions(-) + +diff --git a/completions/Makefile.am b/completions/Makefile.am +index 723b42f..2d0c0f2 100644 +--- a/completions/Makefile.am ++++ b/completions/Makefile.am +@@ -666,8 +666,6 @@ CLEANFILES = \ + pypy3 \ + pytest-2 \ + pytest-3 \ +- python2 \ +- python2.7 \ + python3 \ + python3.3 \ + python3.4 \ +@@ -890,7 +888,7 @@ symlinks: $(DATA) + $(ss) pylint \ + pylint-2 pylint-3 + $(ss) python \ +- micropython pypy pypy3 python2 python2.7 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 ++ micropython pypy pypy3 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 + $(ss) pyvenv \ + pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 + $(ss) qdbus \ +diff --git a/completions/Makefile.in b/completions/Makefile.in +index b8a439f..fe2ad1c 100644 +--- a/completions/Makefile.in ++++ b/completions/Makefile.in +@@ -890,8 +890,6 @@ CLEANFILES = \ + pypy3 \ + pytest-2 \ + pytest-3 \ +- python2 \ +- python2.7 \ + python3 \ + python3.3 \ + python3.4 \ +@@ -1332,7 +1330,7 @@ symlinks: $(DATA) + $(ss) pylint \ + pylint-2 pylint-3 + $(ss) python \ +- micropython pypy pypy3 python2 python2.7 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 ++ micropython pypy pypy3 python3 python3.3 python3.4 python3.5 python3.6 python3.7 python3.8 + $(ss) pyvenv \ + pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 + $(ss) qdbus \ +diff --git a/completions/python b/completions/python +index d50c18f..a8c17db 100644 +--- a/completions/python ++++ b/completions/python +@@ -62,6 +62,6 @@ _python() + COMPREPLY=($(compgen -W '$(_parse_help "$1" -h)' -- "$cur")) + fi + } && +- complete -F _python python python2 python2.7 python3 python3.{3..8} pypy pypy3 micropython ++ complete -F _python python python3 python3.{3..8} pypy pypy3 micropython + + # ex: filetype=sh +-- +1.8.3.1 + diff --git a/bash-completion.spec b/bash-completion.spec index 535b30fd0b45ed166e65b9862d298b948195a9ca..e4d90088fcec0d647156cd050b0a078db8b4727c 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -3,7 +3,7 @@ Name: bash-completion Version: 2.11 -Release: 1 +Release: 2 Epoch: 1 Summary: Completion for bash command License: GPLv2+ @@ -11,6 +11,7 @@ URL: https://github.com/scop/bash-completion Source0: https://github.com/scop/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz Patch0: %{name}-1.99-noblacklist.patch +Patch1: bash-completion-remove-python2.patch BuildArch: noarch @@ -64,6 +65,9 @@ make -C completions check %doc CHANGES README.md doc/bash_completion.txt CONTRIBUTING.md %changelog +* Mon Jun 20 2022 renhongxun - 1:2.11-2 +- remove python2 + * Tue Jan 26 2021 fuanan - 1:2.11-1 - Update to version 2.11