1
0

- Add patch to fix build on ppc64le to not clobber r2 register:

* greenlet-ppc64le.patch

- Version update to 0.4.13:
  * Support for Python 3.7
  * Support for MinGW x64

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-greenlet?expand=0&rev=41
This commit is contained in:
Tomáš Chvátal 2018-02-02 13:36:13 +00:00 committed by Git OBS Bridge
parent e9068dfa18
commit 5e8d0b2102
5 changed files with 49 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e4c99c6010a5d153d481fdaf63b8a0782825c0721506d880403a3b9b82ae347e
size 57319

3
greenlet-0.4.13.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0fef83d43bf87a5196c91e73cb9772f945a4caaff91242766c5916d1dd1381e4
size 58382

23
greenlet-ppc64le.patch Normal file
View File

@ -0,0 +1,23 @@
From d32e64abf2443ada592f6a1e5d74bee35db0f221 Mon Sep 17 00:00:00 2001
From: "Laszlo Boszormenyi (GCS)" <gcs@debian.org>
Date: Sat, 9 Sep 2017 07:57:16 +0000
Subject: [PATCH] Don't clobber 'r2' register on ppc64el
It was invalid even before, now GCC 7 no longer accept this.
---
platform/switch_ppc64_linux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platform/switch_ppc64_linux.h b/platform/switch_ppc64_linux.h
index 0f20756..cd7d748 100644
--- a/platform/switch_ppc64_linux.h
+++ b/platform/switch_ppc64_linux.h
@@ -56,7 +56,7 @@
#define ALTIVEC_REGS
#endif
-#define REGS_TO_SAVE "r2", "r14", "r15", "r16", "r17", "r18", "r19", "r20", \
+#define REGS_TO_SAVE "r14", "r15", "r16", "r17", "r18", "r19", "r20", \
"r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r31", \
"fr14", "fr15", "fr16", "fr17", "fr18", "fr19", "fr20", "fr21", \
"fr22", "fr23", "fr24", "fr25", "fr26", "fr27", "fr28", "fr29", \

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Feb 2 13:34:46 UTC 2018 - tchvatal@suse.com
- Add patch to fix build on ppc64le to not clobber r2 register:
* greenlet-ppc64le.patch
-------------------------------------------------------------------
Fri Feb 2 13:32:25 UTC 2018 - tchvatal@suse.com
- Version update to 0.4.13:
* Support for Python 3.7
* Support for MinGW x64
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 19 17:46:25 UTC 2017 - toddrme2178@gmail.com Wed Apr 19 17:46:25 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-greenlet # spec file for package python-greenlet
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany. # Copyright (c) 2010 B1 Systems GmbH, Vohburg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -17,23 +17,22 @@
# #
%bcond_without test
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-greenlet Name: python-greenlet
Version: 0.4.12 Version: 0.4.13
Release: 0 Release: 0
Url: http://pypi.python.org/pypi/greenlet
Summary: Lightweight in-process concurrent programming Summary: Lightweight in-process concurrent programming
License: MIT License: MIT
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://pypi.python.org/pypi/greenlet
Source0: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch0: greenlet-ppc64le.patch
BuildRequires: gcc-c++
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
%python_subpackages %python_subpackages
@ -54,6 +53,7 @@ This package contains header files required for C modules development.
%prep %prep
%setup -q -n greenlet-%{version} %setup -q -n greenlet-%{version}
%patch0 -p1
%build %build
export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing"
@ -71,13 +71,11 @@ export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing"
%endif %endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root)
%doc AUTHORS NEWS README.rst LICENSE* %doc AUTHORS NEWS README.rst LICENSE*
%doc doc/_build/html/ %doc doc/_build/html/
%{python_sitearch}/* %{python_sitearch}/*
%files %{python_files devel} %files %{python_files devel}
%defattr(-,root,root,-)
%doc AUTHORS LICENSE* %doc AUTHORS LICENSE*
%{_includedir}/python%{python_version}*/greenlet/ %{_includedir}/python%{python_version}*/greenlet/