Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-argcomplete.git#ae9ca821c71b5229dded6e0a0386d2f700d5abdf
This commit is contained in:
DistroBaker 2021-02-03 17:30:27 +00:00
parent 63681c14b4
commit a2b4010cca

View File

@ -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 <releng@fedoraproject.org> - 1.12.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild