commit missing pieces

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-08-12 16:05:11 +02:00
parent af6af413a0
commit 9553466b63
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -1,6 +1,7 @@
%global modname argcomplete %global modname argcomplete
%bcond_without check # https://github.com/kislyuk/argcomplete/issues/256
%bcond_with check
Name: python-%{modname} Name: python-%{modname}
Summary: Bash tab completion for argparse Summary: Bash tab completion for argparse
@ -51,7 +52,9 @@ Python 3 version.
%autosetup -n %{modname}-%{version} %autosetup -n %{modname}-%{version}
# Remove useless BRs # Remove useless BRs
sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py 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 %build
%py3_build %py3_build