|
|
21ff94 |
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
21ff94 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
21ff94 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
21ff94 |
|
|
|
21ff94 |
Name: python-greenlet
|
|
|
21ff94 |
Version: 0.4.2
|
|
|
35f3cd |
Release: 4%{?dist}
|
|
|
21ff94 |
Summary: Lightweight in-process concurrent programming
|
|
|
21ff94 |
Group: Development/Libraries
|
|
|
21ff94 |
License: MIT
|
|
|
21ff94 |
URL: http://pypi.python.org/pypi/greenlet
|
|
|
21ff94 |
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.zip
|
|
|
35f3cd |
Patch0: python-greenlet-support-ppc64le-ABIv2.patch
|
|
|
21ff94 |
|
|
|
21ff94 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
21ff94 |
|
|
|
21ff94 |
BuildRequires: python2-devel
|
|
|
21ff94 |
BuildRequires: python-setuptools
|
|
|
21ff94 |
|
|
|
21ff94 |
%description
|
|
|
21ff94 |
The greenlet package is a spin-off of Stackless, a version of CPython
|
|
|
21ff94 |
that supports micro-threads called "tasklets". Tasklets run
|
|
|
21ff94 |
pseudo-concurrently (typically in a single or a few OS-level threads)
|
|
|
21ff94 |
and are synchronized with data exchanges on "channels".
|
|
|
21ff94 |
|
|
|
21ff94 |
%package devel
|
|
|
21ff94 |
Summary: C development headers for python-greenlet
|
|
|
21ff94 |
Group: Development/Libraries
|
|
|
21ff94 |
Requires: %{name} = %{version}-%{release}
|
|
|
21ff94 |
|
|
|
21ff94 |
%description devel
|
|
|
21ff94 |
This package contains header files required for C modules development.
|
|
|
21ff94 |
|
|
|
21ff94 |
%prep
|
|
|
21ff94 |
%setup -q -n greenlet-%{version}
|
|
|
35f3cd |
%patch0 -p1 -b .ppc64le
|
|
|
21ff94 |
|
|
|
21ff94 |
%build
|
|
|
21ff94 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
21ff94 |
chmod 644 benchmarks/*.py
|
|
|
21ff94 |
|
|
|
21ff94 |
%install
|
|
|
21ff94 |
rm -rf %{buildroot}
|
|
|
21ff94 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
21ff94 |
|
|
|
21ff94 |
%clean
|
|
|
21ff94 |
rm -rf %{buildroot}
|
|
|
21ff94 |
|
|
|
21ff94 |
# FIXME!!
|
|
|
21ff94 |
# The checks segfault on ppc. So this arch
|
|
|
21ff94 |
# is essentially not supported until this is fixed
|
|
|
35f3cd |
%ifnarch ppc s390
|
|
|
21ff94 |
%check
|
|
|
21ff94 |
# Run the upstream test suite:
|
|
|
21ff94 |
%{__python} setup.py test
|
|
|
21ff94 |
|
|
|
21ff94 |
# Run the upstream benchmarking suite to further exercise the code:
|
|
|
21ff94 |
PYTHONPATH=$(pwd) %{__python} benchmarks/chain.py
|
|
|
21ff94 |
%endif
|
|
|
21ff94 |
|
|
|
21ff94 |
%files
|
|
|
21ff94 |
%defattr(-,root,root,-)
|
|
|
21ff94 |
%doc doc/greenlet.txt README.rst benchmarks AUTHORS NEWS
|
|
|
21ff94 |
%{python_sitearch}/greenlet.so
|
|
|
21ff94 |
%{python_sitearch}/greenlet*.egg-info
|
|
|
21ff94 |
|
|
|
21ff94 |
%files devel
|
|
|
21ff94 |
%defattr(-,root,root,-)
|
|
|
21ff94 |
%{_includedir}/python*/greenlet
|
|
|
21ff94 |
|
|
|
21ff94 |
%changelog
|
|
|
35f3cd |
* Tue Mar 07 2017 d.marlin <dmarlin@redhat.com>
|
|
|
35f3cd |
- Add support for ppc64 in LE mode running ABIv2
|
|
|
35f3cd |
Signed-off-by: Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
35f3cd |
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
|
|
|
35f3cd |
rhbz#1252900
|
|
|
35f3cd |
- Remove s390x from skip check list.
|
|
|
35f3cd |
- Bump release and build of all archs.
|
|
|
35f3cd |
|
|
|
21ff94 |
* Fri Apr 14 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.4.2-3
|
|
|
21ff94 |
- gcc-c++ present in default buildroot, not required in BR
|
|
|
21ff94 |
|
|
|
21ff94 |
* Fri Apr 14 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.4.2-2
|
|
|
21ff94 |
- include gcc-c++ BR
|
|
|
21ff94 |
- Rebuilt for RHEL-7
|
|
|
21ff94 |
|
|
|
21ff94 |
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> 0.4.2-1
|
|
|
21ff94 |
- Update to 0.4.2
|
|
|
21ff94 |
|
|
|
21ff94 |
* Mon Aug 05 2013 Kevin Fenzi <kevin@scrye.com> 0.4.1-1
|
|
|
21ff94 |
- Update to 0.4.1
|
|
|
21ff94 |
- Fix FTBFS bug #993134
|
|
|
21ff94 |
|
|
|
21ff94 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
21ff94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
21ff94 |
|
|
|
21ff94 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
|
21ff94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
21ff94 |
|
|
|
21ff94 |
* Fri Jan 18 2013 Pádraig Brady <P@draigBrady.com> - 0.4.0-1
|
|
|
21ff94 |
- Update to 0.4.0
|
|
|
21ff94 |
|
|
|
21ff94 |
* Thu Oct 11 2012 Pádraig Brady <P@draigBrady.com> - 0.3.1-11
|
|
|
21ff94 |
- Add support for ppc64
|
|
|
21ff94 |
|
|
|
21ff94 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-10
|
|
|
21ff94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
21ff94 |
|
|
|
21ff94 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-9
|
|
|
21ff94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
21ff94 |
|
|
|
21ff94 |
* Fri Nov 25 2011 Dan Horák <dan[at]danny.cz> - 0.3.1-8
|
|
|
21ff94 |
- disable tests also for s390(x)
|
|
|
21ff94 |
|
|
|
21ff94 |
* Thu Nov 17 2011 Pádraig Brady <P@draigBrady.com> - 0.3.1-7
|
|
|
21ff94 |
- Fix %%check quoting in the previous comment which when
|
|
|
21ff94 |
left with a single percent sign, pulled in "unset DISPLAY\n"
|
|
|
21ff94 |
into the changelog
|
|
|
21ff94 |
|
|
|
21ff94 |
* Mon Oct 24 2011 Pádraig Brady <P@draigBrady.com> - 0.3.1-6
|
|
|
21ff94 |
- cherrypick 25bf29f4d3b7 from upstream (rhbz#746771)
|
|
|
21ff94 |
- exclude the %%check from ppc where the tests segfault
|
|
|
21ff94 |
|
|
|
21ff94 |
* Wed Oct 19 2011 David Malcolm <dmalcolm@redhat.com> - 0.3.1-5
|
|
|
21ff94 |
- add a %%check section
|
|
|
21ff94 |
- cherrypick 2d5b17472757 from upstream (rhbz#746771)
|
|
|
21ff94 |
|
|
|
21ff94 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
|
|
|
21ff94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
21ff94 |
|
|
|
21ff94 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.1-3
|
|
|
21ff94 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
21ff94 |
|
|
|
21ff94 |
* Wed Apr 14 2010 Lev Shamardin <shamardin@gmail.com> - 0.3.1-2
|
|
|
21ff94 |
- Splitted headers into a -devel package.
|
|
|
21ff94 |
|
|
|
21ff94 |
* Fri Apr 09 2010 Lev Shamardin <shamardin@gmail.com> - 0.3.1-1
|
|
|
21ff94 |
- Initial package version.
|