Accepting request 1060300 from home:bnavigator:branches:devel:languages:python:numeric

- Slightly reformat the specfile condition blocks: The
  %python_subpackages generator misses " %if" lines with a
  preceding whitespace. Relevant for d:l:p:backports not having
  libalternatives.

OBS-URL: https://build.opensuse.org/request/show/1060300
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=114
This commit is contained in:
2023-01-23 10:00:01 +00:00
committed by Git OBS Bridge
parent 190c3c9c8d
commit ba8d466a51
2 changed files with 17 additions and 9 deletions

View File

@@ -103,27 +103,27 @@ BuildRequires: %{python_module typing-extensions >= 4.2.0}
%if %{without hpc}
# Last version which packaged %%{_bindir}/f2py without update-alternatives
Conflicts: %{plainpython}-numpy <= 1.12.0
%if 0%{?suse_version}
%if 0%{?suse_version}
BuildRequires: gcc-fortran
%else
%else
BuildRequires: gcc-gfortran
%endif
%if %{with openblas}
%endif
%if %{with openblas}
BuildRequires: openblas-devel > 0.3.20
%else
%else
BuildRequires: blas-devel
BuildRequires: cblas-devel
BuildRequires: lapack-devel
# openblas has significantly better performance for some operations
Recommends: libopenblas_pthreads0
%endif
%if %{with libalternatives}
%endif
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
%endif
%endif
%else
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel