2015-03-29 14:05:15 +00:00
|
|
|
|
%global with_python3 1
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
|
|
|
|
Name: python-greenlet
|
2015-06-26 21:20:06 +00:00
|
|
|
|
Version: 0.4.7
|
|
|
|
|
Release: 1%{?dist}
|
2010-04-19 05:41:16 +00:00
|
|
|
|
Summary: Lightweight in-process concurrent programming
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://pypi.python.org/pypi/greenlet
|
2013-01-18 13:53:55 +00:00
|
|
|
|
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.zip
|
2010-04-19 05:41:16 +00:00
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python-setuptools
|
2015-03-29 14:05:15 +00:00
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python-tools
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
%endif # if with_python3
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
|
|
|
|
%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".
|
|
|
|
|
|
2015-03-29 14:05:15 +00:00
|
|
|
|
%package devel
|
2010-04-19 05:41:16 +00:00
|
|
|
|
Summary: C development headers for python-greenlet
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-03-29 14:05:15 +00:00
|
|
|
|
%description devel
|
|
|
|
|
This package contains header files required for C modules development.
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%package -n python3-greenlet
|
|
|
|
|
Summary: C development headers for python-greenlet
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n python3-greenlet
|
|
|
|
|
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".
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
2015-03-29 14:05:15 +00:00
|
|
|
|
This is the Python 3 version of greenlet.
|
|
|
|
|
|
|
|
|
|
%package -n python3-greenlet-devel
|
|
|
|
|
Summary: C development headers for python3-greenlet
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: python3-greenlet = %{version}-%{release}
|
|
|
|
|
%description -n python3-greenlet-devel
|
2010-04-19 05:41:16 +00:00
|
|
|
|
This package contains header files required for C modules development.
|
|
|
|
|
|
2015-03-29 14:05:15 +00:00
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
2010-04-19 05:41:16 +00:00
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n greenlet-%{version}
|
2015-03-29 14:05:15 +00:00
|
|
|
|
chmod 644 benchmarks/*.py
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
%endif # if with_python3
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2015-03-29 14:05:15 +00:00
|
|
|
|
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
|
|
popd
|
|
|
|
|
%endif # if with_python3
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2015-03-29 14:05:15 +00:00
|
|
|
|
# Install python 3 first, so that python 2 gets precedence:
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
|
popd
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
2015-03-29 14:05:15 +00:00
|
|
|
|
# -02 or higher breaks on some archs. Refs:
|
|
|
|
|
# https://github.com/python-greenlet/greenlet/issues/63 and 66.
|
|
|
|
|
# TODO: find how to turn opt level down or wait for upstream fix
|
|
|
|
|
%ifnarch ppc64 s390 s390x
|
2011-10-24 17:27:57 +00:00
|
|
|
|
%check
|
2015-03-29 14:05:15 +00:00
|
|
|
|
# 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
|
|
|
|
|
%endif # ppc64 s390 s390x
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
|
|
|
|
%files
|
2015-03-29 14:05:15 +00:00
|
|
|
|
%doc AUTHORS NEWS README.rst LICENSE LICENSE.PSF NEWS
|
|
|
|
|
%doc doc/greenlet.txt README.rst benchmarks
|
2010-04-19 05:41:16 +00:00
|
|
|
|
%{python_sitearch}/greenlet.so
|
|
|
|
|
%{python_sitearch}/greenlet*.egg-info
|
|
|
|
|
|
|
|
|
|
%files devel
|
2015-03-29 14:05:15 +00:00
|
|
|
|
%doc AUTHORS NEWS README.rst LICENSE LICENSE.PSF NEWS
|
|
|
|
|
%{_includedir}/python2*/greenlet
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
%files -n python3-greenlet
|
|
|
|
|
%doc AUTHORS NEWS README.rst LICENSE LICENSE.PSF NEWS
|
|
|
|
|
%doc doc/greenlet.txt README.rst benchmarks
|
|
|
|
|
%{python3_sitearch}/greenlet.cpython-*.so
|
|
|
|
|
%{python3_sitearch}/greenlet*.egg-info
|
|
|
|
|
|
|
|
|
|
%files -n python3-greenlet-devel
|
|
|
|
|
%doc AUTHORS NEWS README.rst LICENSE LICENSE.PSF NEWS
|
|
|
|
|
%{_includedir}/python3*/greenlet
|
|
|
|
|
%endif # if with_python3
|
2010-04-19 05:41:16 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2015-06-26 21:20:06 +00:00
|
|
|
|
* Fri Jun 26 2015 Kevin Fenzi <kevin@scrye.com> 0.4.7-1
|
|
|
|
|
- Update to 0.4.7. Fixes bug #1235896
|
|
|
|
|
|
2015-06-18 19:33:04 +00:00
|
|
|
|
* 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
|
|
|
|
|
|
2015-03-29 14:05:15 +00:00
|
|
|
|
* Sun Mar 29 2015 Terje R<EFBFBD>sten <terje.rosten@ntnu.no> - 0.4.5-1
|
|
|
|
|
- 0.4.5
|
|
|
|
|
- Add python3 subpackage
|
|
|
|
|
- Ship license files
|
|
|
|
|
- Some spec clean ups
|
|
|
|
|
- Update fixes FTBFS issue (bz#1106779)
|
|
|
|
|
- Add comment about issues on ppc64, s390 & s390x
|
|
|
|
|
|
2014-08-17 21:11:36 +00:00
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
2014-06-07 20:43:15 +00:00
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
2014-01-23 18:20:19 +00:00
|
|
|
|
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> 0.4.2-1
|
|
|
|
|
- Update to 0.4.2
|
|
|
|
|
|
2013-08-06 02:34:24 +00:00
|
|
|
|
* Mon Aug 05 2013 Kevin Fenzi <kevin@scrye.com> 0.4.1-1
|
|
|
|
|
- Update to 0.4.1
|
|
|
|
|
- Fix FTBFS bug #993134
|
|
|
|
|
|
2013-08-04 07:54:26 +00:00
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
2013-02-14 19:37:23 +00:00
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
2013-01-18 13:53:55 +00:00
|
|
|
|
* Fri Jan 18 2013 Pádraig Brady <P@draigBrady.com> - 0.4.0-1
|
|
|
|
|
- Update to 0.4.0
|
|
|
|
|
|
2012-10-11 22:30:45 +00:00
|
|
|
|
* Thu Oct 11 2012 Pádraig Brady <P@draigBrady.com> - 0.3.1-11
|
|
|
|
|
- Add support for ppc64
|
|
|
|
|
|
2012-07-21 06:30:51 +00:00
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
2012-01-14 01:46:15 +00:00
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
2011-11-25 21:25:35 +00:00
|
|
|
|
* Fri Nov 25 2011 Dan Horák <dan[at]danny.cz> - 0.3.1-8
|
|
|
|
|
- disable tests also for s390(x)
|
|
|
|
|
|
2011-11-17 12:45:49 +00:00
|
|
|
|
* Thu Nov 17 2011 Pádraig Brady <P@draigBrady.com> - 0.3.1-7
|
|
|
|
|
- Fix %%check quoting in the previous comment which when
|
|
|
|
|
left with a single percent sign, pulled in "unset DISPLAY\n"
|
|
|
|
|
into the changelog
|
|
|
|
|
|
2011-10-24 17:27:57 +00:00
|
|
|
|
* Mon Oct 24 2011 Pádraig Brady <P@draigBrady.com> - 0.3.1-6
|
|
|
|
|
- cherrypick 25bf29f4d3b7 from upstream (rhbz#746771)
|
2011-11-17 12:45:49 +00:00
|
|
|
|
- exclude the %%check from ppc where the tests segfault
|
2011-10-24 17:27:57 +00:00
|
|
|
|
|
|
|
|
|
* Wed Oct 19 2011 David Malcolm <dmalcolm@redhat.com> - 0.3.1-5
|
|
|
|
|
- add a %%check section
|
|
|
|
|
- cherrypick 2d5b17472757 from upstream (rhbz#746771)
|
|
|
|
|
|
2011-02-09 04:08:02 +00:00
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
2010-07-22 04:22:13 +00:00
|
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
|
2010-04-19 05:41:16 +00:00
|
|
|
|
* Wed Apr 14 2010 Lev Shamardin <shamardin@gmail.com> - 0.3.1-2
|
|
|
|
|
- Splitted headers into a -devel package.
|
|
|
|
|
|
|
|
|
|
* Fri Apr 09 2010 Lev Shamardin <shamardin@gmail.com> - 0.3.1-1
|
|
|
|
|
- Initial package version.
|