#3 Build against FlexiBLAS
Merged 3 years ago by decathorpe. Opened 3 years ago by iucar.
rpms/ iucar/sphinxbase master  into  master

file modified
+15 -6
@@ -1,8 +1,14 @@ 

  %global extraver prealpha

  

+ %if 0%{?fedora} >= 33

+ %global blaslib flexiblas

+ %else

+ %global blaslib openblas

+ %endif

+ 

  Name:           sphinxbase

  Version:        5

- Release:        0.7.%{extraver}%{?dist}

+ Release:        0.8.%{extraver}%{?dist}

  Epoch:          1

  Summary:        Common library for CMU Sphinx voice recognition products

  
@@ -19,7 +25,7 @@ 

  BuildRequires:  gcc-c++

  BuildRequires:  ghostscript

  BuildRequires:  libtool

- BuildRequires:  openblas-devel

+ BuildRequires:  %{blaslib}-devel

  BuildRequires:  perl-generators

  BuildRequires:  perl-interpreter

  BuildRequires:  perl(Pod::Usage)
@@ -61,13 +67,13 @@ 

  %prep

  %setup -q -n sphinxbase-%{version}%{extraver}

  

- # Use openblas instead of the blas reference implementation

- sed -ri 's/blas|lapack/openblas/' configure.ac

+ # Use blaslib instead of the blas reference implementation

+ sed -ri 's/blas|lapack/%{blaslib}/' configure.ac

  

  # Use system-provided ax_python_devel.m4

  rm -f m4/ax_python_devel.m4

  

- # Regenerate configure files due to openblas and m4 changes

+ # Regenerate configure files due to blaslib and m4 changes

  autoreconf -fi

  

  # Fix encoding
@@ -88,7 +94,7 @@ 

  %patch0 -p1 -b .fix-doxy2swig

  

  %build

- export CPPFLAGS="-I %{_includedir}/openblas"

+ export CPPFLAGS="-I %{_includedir}/%{blaslib}"

  export PYTHON="python3"

  %configure --disable-static --with-python=%{__python3}

  
@@ -152,6 +158,9 @@ 

  %{python3_sitearch}/sphinxbase

  

  %changelog

+ * Sun Aug 16 2020 Iñaki Úcar <iucar@fedoraproject.org> - 1:5-0.8.prealpha

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

+ 

  * Sat Aug 01 2020 W. Michael Petullo <mike@flyn.org> - 1:5-0.7.prealpha

  - Fix errant use of python_sitearch macro

  

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=49378366

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

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

3 years ago