File python-greenlet.spec of Package python-greenlet
# Created by pyp2rpm-3.2.3
%global pypi_name greenlet
Name: python-%{pypi_name}
Version: 0.4.12
Release: 1%{?dist}
Summary: Lightweight in-process concurrent programming
License: MIT License
URL: https://github.com/python-greenlet/greenlet
Source0: https://pypi.io/packages/source/g/greenlet/greenlet-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%global __provides_exclude_from ^(%{python2_sitearch}/%{pypi_name}.so)$
%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-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python2-%{pypi_name}
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".
This is the Python 2 version of greenlet.
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%py2_build
%install
%py2_install
%files -n python2-%{pypi_name}
%if (0%{?rhel} >= 7) || (0%{?suse_version} >= 1315)
%license LICENSE.PSF LICENSE
%endif
%doc README.rst
%{_includedir}/python%{python_version}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}.so
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Dec 25 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.4.12-1
- Initial package.