Remove subpackage python2-click
This commit is contained in:
parent
6fac17e35b
commit
f1428f9b5a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 7.0
|
Version: 7.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Composable command line interface toolkit
|
Summary: Composable command line interface toolkit
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -18,17 +18,6 @@ comes with good defaults out of the box.
|
|||||||
|
|
||||||
%description %{_description}
|
%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}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||||
@ -50,11 +39,9 @@ Summary: Development documents and examples for Click
|
|||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}/
|
install -d -m755 %{buildroot}/%{_pkgdocdir}/
|
||||||
@ -62,15 +49,8 @@ cp -arf docs/ examples/ %{buildroot}/%{_pkgdocdir}/
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=$(pwd)
|
export PYTHONPATH=$(pwd)
|
||||||
py.test-%{python2_version} tests --tb=long --verbose
|
|
||||||
py.test-%{python3_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}
|
%files -n python3-%{pypi_name}
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%doc README.rst CHANGES.rst
|
%doc README.rst CHANGES.rst
|
||||||
@ -81,6 +61,9 @@ py.test-%{python3_version} tests --tb=long --verbose
|
|||||||
%{_pkgdocdir}/
|
%{_pkgdocdir}/
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Sep 10 2020 liuweibo <liuweibo10@huawei.com> - 7.0-2
|
||||||
- Fix Source0
|
- Fix Source0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user