Use %openblas_arches if available

This commit is contained in:
Orion Poplawski 2017-03-15 15:21:58 -06:00
parent 91b965a3da
commit bf2531524e
1 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,8 @@ URL: http://arma.sourceforge.net/
Source: http://sourceforge.net/projects/arma/files/%{name}-%{version}.tar.xz
BuildRequires: cmake, lapack-devel, arpack-devel, hdf5-devel
%ifarch x86_64 %{ix86} armv7hl ppc64le aarch64
%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64}
%ifarch %{openblas_arches}
BuildRequires: openblas-devel
%endif
BuildRequires: SuperLU-devel
@ -34,7 +35,7 @@ than another language like Matlab or Octave.
Summary: Development headers and documentation for the Armadillo C++ library
Requires: %{name} = %{version}-%{release}
Requires: lapack-devel, arpack-devel, hdf5-devel, libstdc++-devel
%ifarch x86_64 %{ix86} armv7hl ppc64le aarch64
%ifarch %{openblas_arches}
Requires: openblas-devel
%endif
Requires: SuperLU-devel