diff --git a/python-greenlet.changes b/python-greenlet.changes index 804cac6..e695110 100644 --- a/python-greenlet.changes +++ b/python-greenlet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 27 10:27:38 UTC 2024 - ecsos + +- Fix build error under Leap. + ------------------------------------------------------------------- Thu Sep 26 13:37:06 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-greenlet.spec b/python-greenlet.spec index 6056e06..aa59318 100644 --- a/python-greenlet.spec +++ b/python-greenlet.spec @@ -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