Accepting request 836166 from home:StefanBruens:branches:devel:languages:python:numeric

- Fix upgrade from older distro versions which did not package
  f2py using update-alternatives (catched by openQA, boo#1176832).

OBS-URL: https://build.opensuse.org/request/show/836166
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=74
This commit is contained in:
Tomáš Chvátal
2020-09-23 08:44:21 +00:00
committed by Git OBS Bridge
parent d66d897ce2
commit d92d7dfd4e
2 changed files with 10 additions and 0 deletions

View File

@@ -103,6 +103,10 @@ BuildRequires: openblas-devel > 0.3.4
BuildRequires: blas-devel
BuildRequires: lapack-devel
%endif
# Last version which packaged %%{_bindir}/f2py without update-alternatives
# Protect it from substitution
%define oldpy_numpy python-numpy
Conflicts: %{oldpy_numpy} <= 1.12.0
%else
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
BuildRequires: libopenblas%{?hpc_ext}-%{compiler_family}%{?c_f_ver}-hpc-devel