!6 remove python2 of package python-kiwisolver

From: @wang--ge
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 09:54:34 +08:00 committed by Gitee
commit 99fd95bcfb

View File

@ -1,6 +1,6 @@
Name: python-kiwisolver Name: python-kiwisolver
Version: 1.1.0 Version: 1.1.0
Release: 3 Release: 4
Summary: A fast implementation of the Cassowary constraint solver Summary: A fast implementation of the Cassowary constraint solver
License: BSD License: BSD
URL: https://github.com/nucleic/kiwi URL: https://github.com/nucleic/kiwi
@ -13,14 +13,6 @@ Kiwi is an implementation of the algorithm based on the seminal Cassowary paper.
not a refactoring of the original C++ solver. Kiwi has been designed from the ground not a refactoring of the original C++ solver. Kiwi has been designed from the ground
up to be lightweight and fast. up to be lightweight and fast.
%package -n python2-kiwisolver
Summary: Kiwisolver for Python 2 Package
%python_provide python2-kiwisolver
BuildRequires: python2-devel python2-setuptools python2-pytest
%description -n python2-kiwisolver
Kiwisolver for Python 2 Package.
%package -n python3-kiwisolver %package -n python3-kiwisolver
Summary: Kiwisolver for Python 3 Package Summary: Kiwisolver for Python 3 Package
%python_provide python3-kiwisolver %python_provide python3-kiwisolver
@ -34,28 +26,23 @@ Kiwisolver for Python 3 Package.
rm -rf kiwisolver.egg-info rm -rf kiwisolver.egg-info
%build %build
%py2_build
%py3_build %py3_build
%install %install
%py2_install
%py3_install %py3_install
%check %check
PYTHONPATH="%{buildroot}%{python2_sitearch}" py.test-2 py/tests/
PYTHONPATH="%{buildroot}%{python3_sitearch}" py.test-3 py/tests/ PYTHONPATH="%{buildroot}%{python3_sitearch}" py.test-3 py/tests/
%files -n python2-kiwisolver
%doc README.rst LICENSE
%{python2_sitearch}/kiwisolver.so
%{python2_sitearch}/kiwisolver-%{version}-*.egg-info
%files -n python3-kiwisolver %files -n python3-kiwisolver
%doc README.rst LICENSE %doc README.rst LICENSE
%{python3_sitearch}/kiwisolver.cpython-*.so %{python3_sitearch}/kiwisolver.cpython-*.so
%{python3_sitearch}/kiwisolver-%{version}-*.egg-info %{python3_sitearch}/kiwisolver-%{version}-*.egg-info
%changelog %changelog
* Wed Oct 21 2020 Ge Wang <wangge20@huawei.com> - 1.1.0-4
- Remove python2
* Wed Mar 11 2020 gulining<gulining1@huawei.com> - 1.1.0-3 * Wed Mar 11 2020 gulining<gulining1@huawei.com> - 1.1.0-3
- Add python2 - Add python2