diff --git a/python-numpy.changes b/python-numpy.changes index 330a696..c2e832b 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 11 07:33:45 UTC 2024 - Torsten Gruner + +- Fix gnu-hpc build error for Leap + ------------------------------------------------------------------- Wed Dec 27 12:57:32 UTC 2023 - ecsos diff --git a/python-numpy.spec b/python-numpy.spec index ef4f62a..2b3004e 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -201,10 +201,6 @@ sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx rm -f PKG-INFO %build -%if 0%{?suse_version} <= 1600 -export CC=gcc-12 -export CXX=g++-12 -%endif %define _lto_cflags %{nil} %if %{with hpc} %hpc_setup @@ -219,6 +215,10 @@ EOF %else export CFLAGS="%{optflags} -fno-strict-aliasing" %endif +%if 0%{?suse_version} <= 1600 +export CC=gcc-12 +export CXX=g++-12 +%endif %pyproject_wheel