Accepting request 904174 from home:alarrosa:branches:openSUSE:Factory:Rings:1-MinimalX

- Add patch to fix an invalid usage of the dtype argument. This
  has already been fixed upstream but since Staging:F is so
  crowded now with python packages, I think it's better to patch
  it and update numpy once Staging:F is cleared:
  * fix-asarray.patch

OBS-URL: https://build.opensuse.org/request/show/904174
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=90
This commit is contained in:
2021-07-05 17:14:03 +00:00
committed by Git OBS Bridge
parent ec9b6b5846
commit a61bfcedbc
3 changed files with 46 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ Source99: python-numpy-rpmlintrc
Patch0: numpy-buildfix.patch
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure
Patch1: numpy-1.9.0-remove-__declspec.patch
# PATCH-FIX-UPSTREAM fix-asarray.patch alarrosa@suse.com -- fix invalid usage of dtype which is not a positional parameter
Patch2: fix-asarray.patch
BuildRequires: %{python_module Cython >= 0.29.21}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module devel}
@@ -160,6 +162,7 @@ This package contains files for developing applications using numpy.
%setup -q -n numpy-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
# Fix non-executable scripts
sed -i '1s/^#!.*$//' numpy/{compat/setup,random/_examples/cython/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/{setup,bench},matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py
sed -i '1s/^#!.*$//' numpy/random/_examples/cython/*.pyx