Update to 1.9.4 + drop python2 subpkg
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
ec76c5f839
commit
af6af413a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@
|
|||||||
/argcomplete-1.8.2.tar.gz
|
/argcomplete-1.8.2.tar.gz
|
||||||
/argcomplete-1.9.2.tar.gz
|
/argcomplete-1.9.2.tar.gz
|
||||||
/argcomplete-1.9.3.tar.gz
|
/argcomplete-1.9.3.tar.gz
|
||||||
|
/argcomplete-1.9.4.tar.gz
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
- nevr: python-argcomplete-1.8.1-1
|
|
||||||
changelog: >
|
|
||||||
Update to 1.8.1
|
|
||||||
|
|
||||||
Full changelog available at:: https://github.com/kislyuk/argcomplete/blob/master/Changes.rst
|
|
||||||
update_type: enhancement
|
|
@ -4,15 +4,13 @@
|
|||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Summary: Bash tab completion for argparse
|
Summary: Bash tab completion for argparse
|
||||||
Version: 1.9.3
|
Version: 1.9.4
|
||||||
Release: 5%{?dist}
|
Release: 1%{?dist}
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/kislyuk/argcomplete
|
URL: https://github.com/kislyuk/argcomplete
|
||||||
Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
# something in tests is invoking /usr/bin/python to test things
|
|
||||||
BuildRequires: /usr/bin/python
|
|
||||||
BuildRequires: tcsh
|
BuildRequires: tcsh
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -34,19 +32,6 @@ is browsing resources over the network).
|
|||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python2-%{modname}
|
|
||||||
Summary: %{summary}
|
|
||||||
%{?python_provide:%python_provide python2-%{modname}}
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
%if %{with check}
|
|
||||||
BuildRequires: python2-pexpect
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n python2-%{modname} %{_description}
|
|
||||||
|
|
||||||
Python 2 version.
|
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
%{?python_provide:%python_provide python3-%{modname}}
|
||||||
@ -66,13 +51,12 @@ 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
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
|
||||||
install -p -m0644 %{buildroot}%{python3_sitelib}/%{modname}/bash_completion.d/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/
|
install -p -m0644 %{buildroot}%{python3_sitelib}/%{modname}/bash_completion.d/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/
|
||||||
@ -80,17 +64,9 @@ install -p -m0644 %{buildroot}%{python3_sitelib}/%{modname}/bash_completion.d/py
|
|||||||
%if %{with check}
|
%if %{with check}
|
||||||
%check
|
%check
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0 # something in tests is invoking /usr/bin/python to test things
|
|
||||||
%{__python2} setup.py test
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python2-%{modname}
|
|
||||||
%license LICENSE.rst
|
|
||||||
%doc README.rst
|
|
||||||
%{python2_sitelib}/%{modname}-*.egg-info/
|
|
||||||
%{python2_sitelib}/%{modname}/
|
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
@ -103,6 +79,10 @@ export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0 # something in tests is invoking /us
|
|||||||
%{_sysconfdir}/bash_completion.d/python-argcomplete.sh
|
%{_sysconfdir}/bash_completion.d/python-argcomplete.sh
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.9.4-1
|
||||||
|
- Update to 1.9.4
|
||||||
|
- Drop python2 subpackage
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-5
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (argcomplete-1.9.3.tar.gz) = 6f793b1f34df171478af2c477b5ddeff3f44a4c08d1a9205cff19fcc97e65d19a39ddd5c1d7653a70c738507ee1fb5603c437e16e64b3943a87247426bd270b6
|
SHA512 (argcomplete-1.9.4.tar.gz) = 2b0900b55136739f409c32172933af985f4cdde1c018a4687d02f0c5ecdaf36eb8f960270d16bbd157e79f76992c437ab42fd4c6aa9b6aeb3c7302935bf00970
|
||||||
|
Loading…
Reference in New Issue
Block a user