From 64fa2c8e7504e7f22fa0672b8838a51848954dea Mon Sep 17 00:00:00 2001 From: Christian Dersch Date: Oct 31 2017 19:47:31 +0000 Subject: set proper environment variables for openblas --- diff --git a/numpy.spec b/numpy.spec index e3e760c..0a529ed 100644 --- a/numpy.spec +++ b/numpy.spec @@ -11,7 +11,7 @@ Name: numpy Version: 1.13.3 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Summary: A fast multidimensional array facility for Python @@ -122,6 +122,14 @@ This package includes a version of f2py that works properly with NumPy. # http://mail.scipy.org/pipermail/numpy-discussion/2012-July/063530.html rm numpy/distutils/command/__init__.py && touch numpy/distutils/command/__init__.py +%ifarch %{openblas_arches} +# Use openblas pthreads as recommended by upstream (see comment in site.cfg.example) +cat >> site.cfg <= 21 cat >> site.cfg < /dev/null @@ -166,7 +190,12 @@ popd #%%{__python} setup.py install -O1 --skip-build --root %%{buildroot} # skip-build currently broken, this works around it for now -env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \ +%ifarch %{openblas_arches} +env OPENBLAS=%{_libdir} \ +%else +env ATLAS=%{_libdir} \ +%endif + FFTW=%{_libdir} BLAS=%{_libdir} \ LAPACK=%{_libdir} CFLAGS="%{optflags}" \ %{__python2} setup.py install --root %{buildroot} pushd %{buildroot}%{_bindir} &> /dev/null @@ -259,6 +288,9 @@ popd &> /dev/null %changelog +* Tue Oct 31 2017 Christian Dersch - 1:1.13.3-2 +- set proper environment variables for openblas + * Wed Oct 04 2017 Gwyn Ciesla - 1:1.13.3-1 - 1.13.3