From 9553466b63be453b368cc2d96a44f1541cf6bdcd Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 12 Aug 2018 16:05:11 +0200 Subject: [PATCH] commit missing pieces Signed-off-by: Igor Gnatenko --- python-argcomplete.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 37a97bb..52beb3c 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -1,6 +1,7 @@ %global modname argcomplete -%bcond_without check +# https://github.com/kislyuk/argcomplete/issues/256 +%bcond_with check Name: python-%{modname} Summary: Bash tab completion for argparse @@ -51,7 +52,9 @@ Python 3 version. %autosetup -n %{modname}-%{version} # Remove useless BRs sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py -sed -i -e "1s|#!.*|#!%{__python3}|" tests/prog +sed -i -e "1s|#!.*python.*|#!%{__python3}|" test/prog scripts/* +# https://github.com/kislyuk/argcomplete/issues/255 +sed -i -e "s|python |%{__python3} |" test/test.py %build %py3_build