From 2f1ce58cf40c902c451813552307995bdd0bdea1 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 15 Mar 2017 15:34:32 -0600 Subject: [PATCH] Use %openblas_arches if available --- petsc.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/petsc.spec b/petsc.spec index 07f135a..54612ed 100644 --- a/petsc.spec +++ b/petsc.spec @@ -156,7 +156,8 @@ BuildRequires: MUMPS-devel BuildRequires: suitesparse-devel %endif %if %{with blas} -%ifnarch x86_64 %{ix86} armv7hl %{power64} aarch64 +%{!?openblas_arches:%global openblas_arches x86_64 %{ix86} armv7hl %{power64} aarch64} +%ifnarch %{openblas_arches} BuildRequires: blas-devel BuildRequires: lapack-devel %else