# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors # SPDX-FileContributor: Jvle # # SPDX-License-Identifier: MulanPSL-2.0 %global srcname greenlet Name: python-%{srcname} Version: 3.3.2 Release: %autorelease Summary: Lightweight in-process concurrent programming License: MIT AND PSF-2.0 URL: https://github.com/python-greenlet/greenlet #!RemoteAsset Source0: https://files.pythonhosted.org/packages/source/g/%{srcname}/%{srcname}-%{version}.tar.gz BuildSystem: pyproject # Skip leak checking to avoid a missing dependency, `objgraph` Patch0: skip-leak-checks.patch BuildOption(install): %{srcname} BuildRequires: pkgconfig(python3) BuildRequires: python3dist(psutil) BuildRequires: pyproject-rpm-macros BuildRequires: gcc-c++ Provides: python3-%{srcname} %python_provide python3-%{srcname} %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". %generate_buildrequires %pyproject_buildrequires %check cd / PYTHONPATH="%{buildroot}%{python3_sitearch}" \ %{__python3} -m unittest discover -v \ -s "%{buildroot}%{python3_sitearch}/greenlet/tests" \ -t "%{buildroot}%{python3_sitearch}" %files -f %{pyproject_files} %doc AUTHORS README.rst %{_includedir}/python%{python3_version}*/%{srcname}/ %changelog %{?autochangelog}