From 8214cd9a9980230527d92afb08917170dc3a2377 Mon Sep 17 00:00:00 2001 From: gu-gu-gu Date: Wed, 11 Mar 2020 16:12:01 +0800 Subject: [PATCH] add python2 --- python-kiwisolver.spec | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/python-kiwisolver.spec b/python-kiwisolver.spec index 6e9814e..f9f2511 100644 --- a/python-kiwisolver.spec +++ b/python-kiwisolver.spec @@ -1,6 +1,6 @@ Name: python-kiwisolver Version: 1.1.0 -Release: 2 +Release: 3 Summary: A fast implementation of the Cassowary constraint solver License: BSD URL: https://github.com/nucleic/kiwi @@ -13,9 +13,17 @@ 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 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 Summary: Kiwisolver for Python 3 Package -%{?python_provide:%python_provide python3-kiwisolver} +%python_provide python3-kiwisolver BuildRequires: python3-devel python3-setuptools python3-pytest %description -n python3-kiwisolver @@ -26,20 +34,31 @@ Kiwisolver for Python 3 Package. rm -rf kiwisolver.egg-info %build +%py2_build %py3_build %install +%py2_install %py3_install %check +PYTHONPATH="%{buildroot}%{python2_sitearch}" py.test-2 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 %doc README.rst LICENSE %{python3_sitearch}/kiwisolver.cpython-*.so %{python3_sitearch}/kiwisolver-%{version}-*.egg-info %changelog +* Wed Mar 11 2020 gulining - 1.1.0-3 +- Add python2 + * Mon Mar 9 2020 Ling Yang - 1.1.0-2 - Fixed format for spec file