From 6913d6d9a8b884703d9391d7b66aefa2245608cd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 20 Aug 2018 09:04:26 +0100 Subject: [PATCH] Use OpenBLAS on %{openblas_arches} (RHBZ#1619050). --- ocaml-gsl.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ocaml-gsl.spec b/ocaml-gsl.spec index c670faa..016ffd1 100644 --- a/ocaml-gsl.spec +++ b/ocaml-gsl.spec @@ -1,6 +1,6 @@ Name: ocaml-gsl Version: 1.19.1 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Interface to GSL (GNU scientific library) for OCaml License: GPLv2 @@ -24,7 +24,11 @@ BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-camlp4-devel BuildRequires: gsl-devel >= 1.9 BuildRequires: /usr/bin/awk +%ifarch %{openblas_arches} +BuildRequires: openblas-devel +%else BuildRequires: atlas-devel +%endif %description @@ -50,7 +54,11 @@ developing applications that use %{name}. %build +%ifarch %{openblas_arches} +export GSL_CBLAS_LIB="-lopenblas" +%else export GSL_CBLAS_LIB="-lgsl -L%{_libdir}/atlas -lsatlas" +%endif make @@ -85,6 +93,9 @@ make install %changelog +* Mon Aug 20 2018 Richard W.M. Jones - 1.19.1-16 +- Use OpenBLAS on %%{openblas_arches} (RHBZ#1619050). + * Fri Jul 13 2018 Fedora Release Engineering - 1.19.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild