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
|
|
|
#
|
2023-01-05 08:42:04 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
2013-08-05 16:03:54 +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.
|
2013-08-05 16:03:54 +02:00
|
|
|
|
2018-09-17 11:20:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-30 16:44:15 +02:00
|
|
|
#
|
|
|
|
|
2013-08-05 16:03:54 +02:00
|
|
|
|
2023-04-21 15:19:08 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2010-12-04 16:53:22 +01:00
|
|
|
Name: python-greenlet
|
2023-09-20 00:06:34 +02:00
|
|
|
Version: 3.0.0~rc3
|
2011-09-21 11:38:24 +02:00
|
|
|
Release: 0
|
2011-05-30 16:44:15 +02:00
|
|
|
Summary: Lightweight in-process concurrent programming
|
2010-12-04 16:53:22 +01:00
|
|
|
License: MIT
|
2011-09-21 11:38:24 +02:00
|
|
|
Group: Development/Libraries/Python
|
2018-09-17 11:20:20 +02:00
|
|
|
URL: https://github.com/python-greenlet/greenlet
|
2023-09-20 00:06:34 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-3.0.0rc3.tar.gz
|
2021-02-01 23:26:23 +01:00
|
|
|
Source9: python-greenlet-rpmlintrc
|
2018-12-06 17:43:22 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-05-04 16:46:15 +02:00
|
|
|
BuildRequires: %{python_module objgraph}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module psutil}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-08-07 17:29:44 +02:00
|
|
|
BuildRequires: c++_compiler
|
2018-09-17 11:20:20 +02:00
|
|
|
BuildRequires: fdupes
|
2018-02-02 14:36:13 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-04-19 19:48:17 +02:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
%python_subpackages
|
2010-12-04 16:53:22 +01:00
|
|
|
|
|
|
|
%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
|
2011-09-21 11:38:24 +02:00
|
|
|
Requires: %{name} = %{version}
|
2013-01-02 19:03:01 +01:00
|
|
|
BuildArch: noarch
|
2010-12-04 16:53:22 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains header files required for C modules development.
|
|
|
|
|
|
|
|
%prep
|
2023-09-20 00:06:34 +02:00
|
|
|
%autosetup -p1 -n greenlet-3.0.0rc3
|
2010-12-04 16:53:22 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-19 19:48:17 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing"
|
2023-05-04 16:46:15 +02:00
|
|
|
%pyproject_wheel
|
2021-02-01 23:26:23 +01:00
|
|
|
|
|
|
|
export PYTHONPATH=$PWD/src
|
|
|
|
cd docs && make html && rm _build/html/.buildinfo
|
2010-12-04 16:53:22 +01:00
|
|
|
|
|
|
|
%install
|
2023-05-04 16:46:15 +02:00
|
|
|
%pyproject_install
|
2017-04-19 19:48:17 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2010-12-04 16:53:22 +01:00
|
|
|
|
2012-01-03 11:18:16 +01:00
|
|
|
%check
|
2017-04-19 19:48:17 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing"
|
2021-08-30 14:54:04 +02:00
|
|
|
%pyunittest_arch discover -v greenlet.tests
|
2012-01-03 11:18:16 +01:00
|
|
|
|
2017-04-19 19:48:17 +02:00
|
|
|
%files %{python_files}
|
2021-02-01 23:26:23 +01:00
|
|
|
%doc AUTHORS CHANGES.rst README.rst
|
|
|
|
%doc docs/_build/html/
|
2018-08-07 17:29:44 +02:00
|
|
|
%license LICENSE*
|
2023-01-05 08:22:36 +01:00
|
|
|
%{python_sitearch}/greenlet*
|
2010-12-04 16:53:22 +01:00
|
|
|
|
2018-02-02 14:36:13 +01:00
|
|
|
%files %{python_files devel}
|
2018-08-07 17:29:44 +02:00
|
|
|
%doc AUTHORS
|
|
|
|
%license LICENSE*
|
2017-04-19 19:48:17 +02:00
|
|
|
%{_includedir}/python%{python_version}*/greenlet/
|
2010-12-04 16:53:22 +01:00
|
|
|
|
|
|
|
%changelog
|