File python-greenlet.spec of Package python-greenlet

# spec file for package python-greenlet
# Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, 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 "O2en 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

Name:           python-greenlet
Version:        0.3.1
Release:        0
Summary:        Lightweight in-process concurrent programming
License:        MIT
Group:          Development/Libraries/Python
# PATCH-FIX-UPSTREAM i686-register-fixes.patch -- Upstream commit 25bf29f4d3b7
Patch1:         i686-register-fixes.patch
# PATCH-FIX-UPSTREAM get-rid-of-ts_origin.patch -- Upstream commit 2d5b17472757
Patch2:         get-rid-of-ts_origin.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-distribute
%if 0%{?suse_version}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

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}

%description devel
This package contains header files required for C modules development.

%setup -q -n greenlet-%{version}
%patch1 -p1
%patch2 -p1

CFLAGS="%{optflags} -fno-strict-aliasing" python build

python install --prefix=%{_prefix} --root=%{buildroot}

python test


%files devel