From 89e5852a3df666c1674d68dc99eedb0a7f36eed2031eebf56f1e5598bed7eef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 15 Jan 2024 13:46:02 +0000 Subject: [PATCH] Accepting request 1138114 from home:Simmphonie:branches:devel:languages:python:numeric - Fix gnu-hpc build error for Leap OBS-URL: https://build.opensuse.org/request/show/1138114 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=149 --- python-numpy.changes | 5 +++++ python-numpy.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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