2010-12-04 16:53:22 +01:00
|
|
|
#
|
2011-05-30 16:44:15 +02:00
|
|
|
# spec file for package python-greenlet
|
2010-12-04 16:53:22 +01:00
|
|
|
#
|
2011-05-30 16:44:15 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-12-04 16:53:22 +01:00
|
|
|
# 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
|
2011-05-30 16:44:15 +02:00
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
2010-12-04 16:53:22 +01:00
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2011-05-30 16:44:15 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-12-04 16:53:22 +01:00
|
|
|
# norootforbuild
|
2011-05-30 16:44:15 +02:00
|
|
|
|
|
|
|
|
2010-12-04 16:53:22 +01:00
|
|
|
Name: python-greenlet
|
|
|
|
Version: 0.3.1
|
|
|
|
Release: 1
|
2011-05-30 16:44:15 +02:00
|
|
|
Summary: Lightweight in-process concurrent programming
|
2010-12-04 16:53:22 +01:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
License: MIT
|
2011-05-30 16:44:15 +02:00
|
|
|
Url: http://pypi.python.org/pypi/greenlet
|
2010-12-04 16:53:22 +01:00
|
|
|
Source0: http://pypi.python.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# py_requires is no longer needed since 11.3
|
|
|
|
%{py_requires}
|
|
|
|
|
|
|
|
%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
|
2011-05-30 16:44:15 +02:00
|
|
|
|
2010-12-04 16:53:22 +01:00
|
|
|
Summary: C development headers for python-greenlet
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files required for C modules development.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n greenlet-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
chmod 644 benchmarks/*.py
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
|
|
|
grep -v greenlet/greenlet.h$ INSTALLED_FILES > INSTALLED_FILES_nodevel
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES_nodevel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/python*/greenlet
|
|
|
|
|
|
|
|
%changelog
|