diff --git a/python-numpy.changes b/python-numpy.changes index 5294af7..d033b90 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Oct 2 13:29:32 UTC 2020 - Stefan BrĂ¼ns + +- Add cblas build dependency, otherwise numpy uses naive internal + implementations for some blas operations, mitigates boo#1177260. +- Add libopenblas recommends. To actually use openblas instead of + netlib BLAS/LAPACK, update-alternatives has to be used. +- Remove .pytest_cache from the build_root + ------------------------------------------------------------------- Wed Sep 30 07:13:22 UTC 2020 - Guillaume GARDET diff --git a/python-numpy.spec b/python-numpy.spec index a63a6bf..5c8c8b0 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -101,7 +101,10 @@ BuildRequires: gcc-gfortran BuildRequires: openblas-devel > 0.3.4 %else BuildRequires: blas-devel +BuildRequires: cblas-devel BuildRequires: lapack-devel +# openblas has significantly better performance for some operations +Recommends: libopenblas_pthreads0 %endif # Last version which packaged %%{_bindir}/f2py without update-alternatives # Protect it from substitution @@ -141,6 +144,7 @@ Requires: python-devel Requires: openblas-devel %else Requires: blas-devel +Requires: cblas-devel Requires: lapack-devel %endif %else @@ -253,10 +257,13 @@ pushd testing # boo#1148173 gh#numpy/numpy#14438 %ifarch ppc64 ppc64le %define skiptest -k "not test_generalized_sq" +%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy -k "test_generalized_sq" || true %endif %pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy %{?skiptest} popd +rm -Rf %{buildroot}%{python_sitearch}/numpy/.pytest_cache %endif + %if %{without hpc} %post %python_install_alternative f2py