%global modname numpy Name: numpy Version: 1.21.4 Release: 8 Epoch: 1 Summary: A fast multidimensional array facility for Python License: ASL 2.0 URL: http://www.numpy.org/ Source0: https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip BuildRequires: openblas-devel BuildRequires: lapack-devel gcc-gfortran BuildRequires: python3-Cython >= 0.29.24 BuildRequires: python3-hypothesis Patch0: backport-CVE-2021-41496.patch Patch1: backport-CVE-2021-41495.patch Patch2: backport-CVE-2021-34141.patch Patch1000: numpy-1.21.4-sw.patch Patch1001: add-loongarch-architecture-support.patch Patch1002: backport-MAINT-Do-not-forward-__-deep-copy__-calls-of-_Gener.patch %description NumPy is the fundamental package for scientific computing with Python. It contains among other things: a powerful N-dimensional array object sophisticated (broadcasting) functions tools for integrating C/C++ and Fortran code useful linear algebra, Fourier transform, and random number capabilities Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. %package -n python3-numpy Summary: A fast multidimensional array facility for Python License: BSD %{?python_provide:%python_provide python3-numpy} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest Provides: python3-numpy-doc %description -n python3-numpy NumPy is the fundamental package for scientific computing with Python. It contains among other things: a powerful N-dimensional array object sophisticated (broadcasting) functions tools for integrating C/C++ and Fortran code useful linear algebra, Fourier transform, and random number capabilities Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. %package -n python3-numpy-f2py Summary: f2py for numpy Requires: python3-numpy = %{epoch}:%{version}-%{release} Requires: python3-devel Provides: python3-f2py = %{version}-%{release} %{?python_provide:%python_provide python3-numpy-f2py} %description -n python3-numpy-f2py This package includes a version of f2py that works properly with NumPy. %prep %autosetup -n %{name}-%{version} -p1 rm numpy/distutils/command/__init__.py && touch numpy/distutils/command/__init__.py cat >> site.cfg < /dev/null %check pushd doc &> /dev/null PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ %{__python3} -c "import pkg_resources, numpy ; numpy.test(verbose=2)" popd &> /dev/null %files -n python3-numpy %license LICENSE.txt %doc THANKS.txt site.cfg.example %dir %{python3_sitearch}/%{name} %{python3_sitearch}/%{name}/* %{python3_sitearch}/%{name}-*.egg-info %exclude %{python3_sitearch}/%{name}/LICENSE.txt %exclude %{python3_sitearch}/%{name}/f2py %exclude %{python3_sitearch}/%{name}/tests/ %exclude %{python3_sitearch}/%{name}/*/tests/ %files -n python3-numpy-f2py %{_bindir}/f2py %{_bindir}/f2py3 %{_bindir}/f2py3.* %{python3_sitearch}/%{name}/f2py %exclude %{python3_sitearch}/%{name}/f2py/tests/ %changelog * Thu Feb 29 2024 liyanan - 1:1.21.4-8 - Type:bugfix - CVE:NA - SUG:NA - DESC:make the test check * Thu Feb 01 2024 shixuantong - 1:1.21.4-7 - Do not pack open-source test case files * Mon Oct 30 2023 Qiang Wei - 1:1.21.4-6 - Remove f2py from numpy package. It is in numpy-f2py pakcage. * Thu Aug 17 2023 yangchenguang - 1:1.21.4-5 - Add loongarch64 and sw_64 support * Thu May 26 2022 renhongxun - 1.21.4-4 - fix CVE-2021-34141 * Tue Feb 08 2022 renhongxun - 1.21.4-3 - fix CVE-2021-41495 * Tue Jan 04 2022 yuanxin - 1.21.4-2 - fix CVE-2021-41496 * Fri Dec 24 2021 yuanxin - 1.21.4-1 - update version to 1.21.4 * Tue Aug 24 2021 wulei - 1.18.5-1 - update to 1.18.5 * Mon Jan 18 2021 tianwei - 1.16.5-6 - Type:NA - ID:N/A - SUGA:NA - DESC:fix package files * Fri Oct 30 2020 tianwei - 1.16.5-5 - Type:NA - ID:N/A - SUGA:NA - DESC:remove python2 * Tue Sep 22 2020 shixuantong - 1.16.5-4 - Type:NA - ID:N/A - SUGA:NA - DESC:remove python-nose * Sat Jun 20 2020 fuyangqing - 1.16.5-3 - Type:bugfix - ID:N/A - SUGA:NA - DESC:change spec hardcode the dependent python version number * Tue Oct 22 2019 openEuler Buildteam - 1.16.5-1 - Package init