d8d1abf2b9
- Update to version 0.4.3: + Better slp_switch performance on SPARC + Drop support for Python 2.3 + Fix trashcan assertions on debug builds of Python + Remove deprecated -fno-tree-dominator-opts compiler switch + Enable switch code for SunStudio on 32-bit SunOS + Support for abc abstract methods in greenlet subclasses + Support custom directories for tests + Document switch tracing support OBS-URL: https://build.opensuse.org/request/show/244824 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-greenlet?expand=0&rev=21
80 lines
2.5 KiB
RPMSpec
80 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-greenlet
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-greenlet
|
|
Version: 0.4.3
|
|
Release: 0
|
|
Url: http://pypi.python.org/pypi/greenlet
|
|
Summary: Lightweight in-process concurrent programming
|
|
License: MIT
|
|
Group: Development/Libraries/Python
|
|
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.zip
|
|
Patch1: ppc64le-support.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: unzip
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%endif
|
|
|
|
%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 devel
|
|
Summary: C development headers for python-greenlet
|
|
Group: Development/Libraries/Python
|
|
Requires: %{name} = %{version}
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description devel
|
|
This package contains header files required for C modules development.
|
|
|
|
%prep
|
|
%setup -q -n greenlet-%{version}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" python setup.py build
|
|
cd doc && make html
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%check
|
|
CFLAGS="%{optflags}" python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS NEWS README.rst doc/_build/html
|
|
%{python_sitearch}/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/python*/greenlet
|
|
|
|
%changelog
|