#1 Build against FlexiBLAS
Merged 2 years ago by decathorpe. Opened 2 years ago by iucar.
rpms/ iucar/mp master  into  master

file modified
+12 -8
@@ -16,6 +16,12 @@ 

  %endif

  %endif

  

+ %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9

+ %global blaslib flexiblas

+ %else

+ %global blaslib openblas

+ %endif

+ 

  %if 0%{?rhel} && 0%{?rhel} < 7

  %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}

  %endif
@@ -30,7 +36,7 @@ 

  

  Name: mp

  Version: 3.1.0

- Release: 30.%{date}git%{shortcommit}%{?dist}

+ Release: 31.%{date}git%{shortcommit}%{?dist}

  License: MIT and BSD

  Summary: An open-source library for mathematical programming

  URL: https://github.com/ampl/mp
@@ -83,7 +89,7 @@ 

  BuildRequires: jacop

  BuildRequires: java-devel

  %endif

- BuildRequires: openblas-devel

+ BuildRequires: %{blaslib}-devel

  BuildRequires: pkgconfig(gsl)

  %if 0%{?fedora}

  BuildRequires: pkgconfig(odbc)
@@ -183,12 +189,7 @@ 

  %endif

  

  %build

- %if 0%{?fedora} || 0%{?rhel} >= 7

- export LIBS="-lgsl -lopenblas"

- %else

- export LIBS="-lgsl -L%{_libdir}/atlas -lcblas -latlas"

- %endif

- 

+ export LIBS="-lgsl -l%{blaslib}"

  mkdir -p build && pushd build

  BUILD="asl,gsl,smpswriter"

  %if 0%{?with_gecode}
@@ -380,6 +381,9 @@ 

  %endif

  

  %changelog

+ * Thu Aug 27 2020 Iñaki Úcar <iucar@fedoraproject.org> - 3.1.0-31.20200303git7fd4828

+ - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager

+ 

  * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-30.20200303git7fd4828

  - Second attempt - Rebuilt for

    https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

This PR is part of a F33 System-Wide Change Proposal that aims to set FlexiBLAS
as the default BLAS/LAPACK manager for all consumers of these APIs. For further
information, see https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager

You'll find a successful scratch build for this PR in
https://koji.fedoraproject.org/koji/taskinfo?taskID=50255417

I kindly ask you to merge this PR and build the package in rawhide and F33. Please,
report any issues you may found in https://bugzilla.redhat.com/show_bug.cgi?id=1860504

@decathorpe This package doesn't seem to use BLAS/LAPACK (apart from GSL) at all, but here we go.

Processing as provenpackager according to this request for help:
https://pagure.io/fesco/issue/2443#comment-669930

Diff looks good, simple-koji-ci passed. I'll merge and build.

Pull-Request has been merged by decathorpe

2 years ago