--- /dev/null
+--- numpy-1.22.4/numpy/random/tests/test_extending.py.orig 2022-05-20 15:46:11.022547000 +0200
++++ numpy-1.22.4/numpy/random/tests/test_extending.py 2022-09-02 21:05:39.227962995 +0200
+@@ -30,16 +30,6 @@ try:
+ from Cython.Compiler.Version import version as cython_version
+ except ImportError:
+ cython = None
+-else:
+- from distutils.version import LooseVersion
+- # Cython 0.29.21 is required for Python 3.9 and there are
+- # other fixes in the 0.29 series that are needed even for earlier
+- # Python versions.
+- # Note: keep in sync with the one in pyproject.toml
+- required_version = LooseVersion('0.29.21')
+- if LooseVersion(cython_version) < required_version:
+- # too old or wrong cython, skip the test
+- cython = None
+
+ @pytest.mark.skipif(cython is None, reason="requires cython")
+ @pytest.mark.slow
+--- numpy-1.22.4/numpy/core/tests/test_cython.py.orig 2022-05-20 15:46:10.990547200 +0200
++++ numpy-1.22.4/numpy/core/tests/test_cython.py 2022-09-02 21:02:27.667878264 +0200
+@@ -12,17 +12,6 @@ try:
+ from Cython.Compiler.Version import version as cython_version
+ except ImportError:
+ cython = None
+-else:
+- from distutils.version import LooseVersion
+-
+- # Cython 0.29.21 is required for Python 3.9 and there are
+- # other fixes in the 0.29 series that are needed even for earlier
+- # Python versions.
+- # Note: keep in sync with the one in pyproject.toml
+- required_version = LooseVersion("0.29.21")
+- if LooseVersion(cython_version) < required_version:
+- # too old or wrong cython, skip the test
+- cython = None
+
+ pytestmark = pytest.mark.skipif(cython is None, reason="requires cython")
+
#Source0Download: https://github.com/numpy/numpy/releases/
Source0: https://github.com/numpy/numpy/releases/download/v%{version}/%{module}-%{version}.tar.gz
# Source0-md5: 5b506b01ef454f39272ca75de1c7f61c
+Patch0: %{name}-deprecated.patch
URL: https://github.com/numpy/numpy
BuildRequires: gcc-fortran
BuildRequires: lapack-devel >= 3.1.1-2
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
# numpy.distutils uses CFLAGS/LDFLAGS as its own flags replacements,