|
|
|
@ -1,141 +1,124 @@
|
|
|
|
|
%global modname greenlet
|
|
|
|
|
%global with_python3 1
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 0.4.9
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.4.14
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Summary: Lightweight in-process concurrent programming
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://pypi.python.org/pypi/%{modname}
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.zip
|
|
|
|
|
URL: https://github.com/python-greenlet/greenlet
|
|
|
|
|
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
Patch1: %{url}/commit/c644ca6823994b958e004b3e00b587723181b58e.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python-tools
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
|
|
|
|
%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)
|
|
|
|
|
%global _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-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{modname}
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{modname}-devel
|
|
|
|
|
Summary: C development headers for python2-greenlet
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}-devel}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: python2-%{modname} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{modname}-devel
|
|
|
|
|
This package contains header files required for C modules development.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{modname}
|
|
|
|
|
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".
|
|
|
|
|
%description -n python3-%{modname} %{_description}
|
|
|
|
|
|
|
|
|
|
This is the Python 3 version of greenlet.
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%package -n python3-greenlet-devel
|
|
|
|
|
Summary: C development headers for python3-greenlet
|
|
|
|
|
%package -n python3-%{modname}-devel
|
|
|
|
|
Summary: C development headers for python3-%{modname}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}-devel}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: python3-%{modname} = %{version}-%{release}
|
|
|
|
|
Requires: python3-%{modname}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{modname}-devel
|
|
|
|
|
This package contains header files required for C modules development.
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n greenlet-%{version}
|
|
|
|
|
chmod 644 benchmarks/*.py
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%autosetup -n %{modname}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%py3_build
|
|
|
|
|
popd
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# Install python 3 first, so that python 2 gets precedence:
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%py3_install
|
|
|
|
|
popd
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# Run the upstream test suite and benchmarking suite to further exercise the code
|
|
|
|
|
%{__python2} setup.py test
|
|
|
|
|
PYTHONPATH=$(pwd) %{__python2} benchmarks/chain.py
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
PYTHONPATH=
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py test || :
|
|
|
|
|
2to3 -w --no-diffs -n benchmarks/chain.py
|
|
|
|
|
PYTHONPATH=$(pwd) %{__python3} benchmarks/chain.py
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}
|
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
%license LICENSE LICENSE.PSF
|
|
|
|
|
%doc AUTHORS NEWS README.rst
|
|
|
|
|
%doc doc/greenlet.txt benchmarks
|
|
|
|
|
%{python_sitearch}/greenlet.so
|
|
|
|
|
%{python_sitearch}/greenlet*.egg-info
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}-devel
|
|
|
|
|
%license LICENSE LICENSE.PSF
|
|
|
|
|
%doc AUTHORS NEWS README.rst
|
|
|
|
|
%{_includedir}/python2*/greenlet
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-greenlet
|
|
|
|
|
%license LICENSE LICENSE.PSF
|
|
|
|
|
%doc AUTHORS NEWS README.rst
|
|
|
|
|
%doc doc/greenlet.txt benchmarks
|
|
|
|
|
%{python3_sitearch}/greenlet.cpython-*.so
|
|
|
|
|
%{python3_sitearch}/greenlet*.egg-info
|
|
|
|
|
%{python3_sitearch}/%{modname}-*.egg-info
|
|
|
|
|
%{python3_sitearch}/%{modname}*.so
|
|
|
|
|
|
|
|
|
|
%files -n python3-greenlet-devel
|
|
|
|
|
%license LICENSE LICENSE.PSF
|
|
|
|
|
%doc AUTHORS NEWS README.rst
|
|
|
|
|
%{_includedir}/python3*/greenlet
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%{_includedir}/python%{python3_version}*/%{modname}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-8
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu May 21 2020 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-7
|
|
|
|
|
- Fix Python 3.9 build
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Sep 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-5
|
|
|
|
|
- Subpackages python2-greenlet, python2-greenlet-devel have been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.4.14-4
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.14-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 18 2018 Kevin Fenzi <kevin@scrye.com> - 0.4.14-1
|
|
|
|
|
- Update to 0.4.14.
|
|
|
|
|
- Drop upstreamed/no longer needed patches.
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.13-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 03 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.13-4
|
|
|
|
|
- Add fix for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.13-3
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.13-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.13-1
|
|
|
|
|
- Update to 0.4.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4.12-1
|
|
|
|
|
- Update to 0.4.12
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.11-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Dec 20 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.11-2
|
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
|
|
|
|
|
* Sun Dec 11 2016 Kevin Fenzi <kevin@scrye.com> - 0.4.11-1
|
|
|
|
|
- Update to 0.4.11. Fixes bug #1403514
|
|
|
|
|
|
|
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.9-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
|
|
|
|
@ -155,7 +138,7 @@ PYTHONPATH=$(pwd) %{__python3} benchmarks/chain.py
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Mar 29 2015 Terje Røsten <terje.rosten@ntnu.no> - 0.4.5-1
|
|
|
|
|
* Sun Mar 29 2015 Terje Røsten <terje.rosten@ntnu.no> - 0.4.5-1
|
|
|
|
|
- 0.4.5
|
|
|
|
|
- Add python3 subpackage
|
|
|
|
|
- Ship license files
|
|
|
|
|