Name: python-greenlet Version: 0.4.14 Release: 8 Summary: lightweight coroutines for in-process concurrent programming License: MIT URL: https://github.com/python-greenlet/greenlet Source0: https://github.com/python-greenlet/greenlet/archive/0.4.14.tar.gz Patch0001: 0001-Add-support-for-RISC-V.patch Patch0002: 0002-Workaround-a-gcc-bug-using-manual-save-restore-of-r3.patch Patch0003: 0003-Update-switch_ppc_aix.h.patch Patch0004: 0004-Update-setup.py.patch BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools BuildRequires: gcc-c++ %description The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". %package -n python2-greenlet Summary: lightweight coroutines for in-process concurrent programming %{?python_provide:%python_provide python2-greenlet} %description -n python2-greenlet The greenlet package of python 2 version. %package -n python2-greenlet-devel Summary: Development files for python2-greenlet Requires: python2-greenlet%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python2-greenlet-devel} %description -n python2-greenlet-devel This package contains libraries and headier files for developing applications that use python2-greenlet. %package -n python3-greenlet Summary: lightweight coroutines for in-process concurrent programming %{?python_provide:%python_provide python3-greenlet} %description -n python3-greenlet The greenlet package of python 3 version. %package -n python3-greenlet-devel Summary: Development files for python2-greenlet Requires: python3-greenlet%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python3-greenlet-devel} %description -n python3-greenlet-devel This package contains libraries and headier files for developing applications that use python3-greenlet. %prep %autosetup -n greenlet-%{version} -p1 %build %py2_build %py3_build %install %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test %files -n python2-greenlet %defattr(-,root,root) %license LICENSE LICENSE.PSF %doc AUTHORS NEWS README.rst %{python2_sitearch}/* %files -n python2-greenlet-devel %defattr(-,root,root) %{_includedir}/python%{python2_version}*/greenlet/ %files -n python3-greenlet %defattr(-,root,root) %license LICENSE LICENSE.PSF %doc AUTHORS NEWS README.rst %{python3_sitearch}/* %files -n python3-greenlet-devel %defattr(-,root,root) %{_includedir}/python%{python3_version}*/greenlet/ %changelog * Thu Dec 28 2023 zhangliangpengkun - 0.4.14-8 - Update setup.py * Thu Oct 23 2023 zhangliangpengkun - 0.4.14-7 - Update switch_ppc_aix.h * Thu Nov 02 2023 zhangliangpengkun - 0.4.14-6 - Workaround a gcc bug using manual save/restore of r30 * Tue Oct 24 2023 zhangliangpengkun - 0.4.14-5 - Add support for RISC-V * Thu Sep 17 2020 liuweibo - 0.4.14-4 - Fix Source0 * Fri Aug 21 2020 fanjiachen - 0.4.14-3 - Type:rebuild - ID:NA - SUG:NA - DESC:rebuild for requirement package update * Mon Dec 9 2019 openEuler Buildteam - 0.4.14-2 - Package init