!5 Remove subpackage python2-click

From: @lei_ju
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 15:40:09 +08:00 committed by Gitee
commit 74ec2f8610

View File

@ -2,7 +2,7 @@
Name: python-%{pypi_name}
Version: 7.0
Release: 2
Release: 3
Summary: Composable command line interface toolkit
License: BSD
@ -18,17 +18,6 @@ comes with good defaults out of the box.
%description %{_description}
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-pytest
%description -n python2-%{pypi_name} %{_description}
Python 2 version.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
@ -50,11 +39,9 @@ Summary: Development documents and examples for Click
%autosetup -n %{pypi_name}-%{version}
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}/
@ -62,15 +49,8 @@ cp -arf docs/ examples/ %{buildroot}/%{_pkgdocdir}/
%check
export PYTHONPATH=$(pwd)
py.test-%{python2_version} tests --tb=long --verbose
py.test-%{python3_version} tests --tb=long --verbose
%files -n python2-%{pypi_name}
%license LICENSE.rst
%doc README.rst CHANGES.rst
%{python2_sitelib}/Click-*.egg-info/
%{python2_sitelib}/%{pypi_name}/
%files -n python3-%{pypi_name}
%license LICENSE.rst
%doc README.rst CHANGES.rst
@ -81,6 +61,9 @@ py.test-%{python3_version} tests --tb=long --verbose
%{_pkgdocdir}/
%changelog
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 7.0-3
- Remove subpackage python2-click
* Thu Sep 10 2020 liuweibo <liuweibo10@huawei.com> - 7.0-2
- Fix Source0