Accepting request 1062552 from devel:languages:python:numeric

- build-conditionalize cblas dependency, it is missing on SLE <= 15
  related to bsc#1177260 not being fixable for SLE15 (jsc#PED-3257)

OBS-URL: https://build.opensuse.org/request/show/1062552
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=113
This commit is contained in:
Dominique Leuenberger 2023-02-03 21:04:37 +00:00 committed by Git OBS Bridge
commit c793af4453
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 1 21:44:21 UTC 2023 - Dirk Müller <dmueller@suse.com>
- build-conditionalize cblas dependency, it is missing on SLE <= 15
related to bsc#1177260 not being fixable for SLE15 (jsc#PED-3257)
-------------------------------------------------------------------
Sun Jan 22 19:55:11 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -46,8 +46,10 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%bcond_without cblas
%else
%bcond_with libalternatives
%bcond_with cblas
%endif
#
%bcond_with ringdisabled
@ -112,11 +114,13 @@ BuildRequires: gcc-gfortran
BuildRequires: openblas-devel > 0.3.20
%else
BuildRequires: blas-devel
BuildRequires: cblas-devel
BuildRequires: lapack-devel
%if %{with cblas}
# openblas has significantly better performance for some operations
BuildRequires: cblas-devel
Recommends: libopenblas_pthreads0
%endif
%endif
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
@ -157,7 +161,9 @@ Requires: %plainpython(abi) = %{python_version}
Requires: openblas-devel
%else
Requires: blas-devel
%if %{with cblas}
Requires: cblas-devel
%endif
Requires: lapack-devel
%endif
%else