diff --git a/python-argcomplete.spec b/python-argcomplete.spec index ae3c4f7..2d90fea 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -1,9 +1,14 @@ +# Disable check to avoid pulling unwanted package (fish) into RHEL 9 +%if 0%{?rhel} >= 9 && !0%{?epel} +%bcond_with check +%else %bcond_without check +%endif Name: python-argcomplete Summary: Bash tab completion for argparse Version: 1.12.0 -Release: 2%{?dist} +Release: 3%{?dist} License: ASL 2.0 URL: https://github.com/kislyuk/argcomplete Source0: %pypi_source argcomplete @@ -60,6 +65,11 @@ install -p -m0644 %{buildroot}%{python3_sitelib}/argcomplete/bash_completion.d/p %if %{with check} %check +# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1914782 +# upstream: https://github.com/kislyuk/argcomplete/issues/337 +echo "set enable-bracketed-paste off" > .inputrc +export INPUTRC=$PWD/.inputrc + %{python3} setup.py test %endif @@ -75,6 +85,9 @@ install -p -m0644 %{buildroot}%{python3_sitelib}/argcomplete/bash_completion.d/p %{_sysconfdir}/bash_completion.d/python-argcomplete %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 1.12.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Tue Jul 28 2020 Fedora Release Engineering - 1.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild