Use %openblas_arches if available

epel9
Orion Poplawski 8 years ago
parent 91b965a3da
commit bf2531524e

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

Loading…
Cancel
Save