File python3-greenlet.spec of Package python3-greenlet

#
# spec file for package python3-greenlet
#
# Copyright (c) 2015 SUSE LINUX 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:           python3-greenlet
Version:        0.4.7
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  python3-Sphinx
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%if 0%{?suse_version} < 1230
BuildRequires:  python3-2to3
%endif
BuildRequires:  unzip

%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}
BuildArch:      noarch

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

%prep
%setup -q -n greenlet-%{version}

%build
CFLAGS="%{optflags} -fno-tree-dominator-opts" python3 setup.py build
cd doc && make html

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
CFLAGS="%{optflags} -fno-tree-dominator-opts" python3 setup.py test

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README.rst doc/_build/html
%{python3_sitearch}/*

%files devel
%defattr(-,root,root,-)
%{_includedir}/python*/greenlet

%changelog
openSUSE Build Service is sponsored by