diff --git a/python-numpy.changes b/python-numpy.changes index b0cd620..074f438 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 1 21:44:21 UTC 2023 - Dirk Müller + +- build-conditionalize cblas dependency, it is missing on SLE <= 15 + related to bsc#1177260 not being fixable for SLE15 + ------------------------------------------------------------------- Sun Jan 22 19:55:11 UTC 2023 - Ben Greiner diff --git a/python-numpy.spec b/python-numpy.spec index db84159..f4f5afc 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -46,8 +46,10 @@ # %if 0%{?suse_version} > 1500 %bcond_without libalternatives +%bcond_without cblas %else %bcond_with libalternatives +%bcond_with cblas %endif # %bcond_with ringdisabled @@ -112,11 +114,13 @@ BuildRequires: gcc-gfortran BuildRequires: openblas-devel > 0.3.20 %else BuildRequires: blas-devel -BuildRequires: cblas-devel BuildRequires: lapack-devel +%if %{with cblas} # openblas has significantly better performance for some operations +BuildRequires: cblas-devel Recommends: libopenblas_pthreads0 %endif +%endif %if %{with libalternatives} BuildRequires: alts Requires: alts @@ -157,7 +161,9 @@ Requires: %plainpython(abi) = %{python_version} Requires: openblas-devel %else Requires: blas-devel +%if %{with cblas} Requires: cblas-devel +%endif Requires: lapack-devel %endif %else