Use OpenBLAS on %{openblas_arches} (RHBZ#1619050).

This commit is contained in:
Richard W.M. Jones 2018-08-20 09:04:26 +01:00
parent 2f04d6a483
commit 6913d6d9a8
1 changed files with 12 additions and 1 deletions

View File

@ -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 <rjones@redhat.com> - 1.19.1-16
- Use OpenBLAS on %%{openblas_arches} (RHBZ#1619050).
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild