- Fix build error under Leap.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-greenlet?expand=0&rev=88
This commit is contained in:
parent
3932fde8ad
commit
8bf8bc8e02
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 27 10:27:38 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Fix build error under Leap.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 26 13:37:06 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
@ -36,7 +36,13 @@ BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module psutil}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: c++_compiler
|
||||
%if 0%{?suse_version} < 1600
|
||||
BuildRequires: gcc12
|
||||
BuildRequires: gcc12-c++
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with docs}
|
||||
@ -65,6 +71,10 @@ This package contains header files required for C modules development.
|
||||
sed -i '1{/env python/d}' src/greenlet/tests/test_version.py
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} < 1600
|
||||
export CC=gcc-12
|
||||
export CXX=g++-12
|
||||
%endif
|
||||
export CFLAGS="%{optflags} -fno-tree-dominator-opts -fno-strict-aliasing"
|
||||
%pyproject_wheel
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user