diff --git a/download b/download deleted file mode 100644 index 93942d13adbe9b20dbeaa779ca925e60f2ae23cc..0000000000000000000000000000000000000000 --- a/download +++ /dev/null @@ -1 +0,0 @@ -3f3995540a17854a29dc79f8eeecd832 numpy-1.24.4.tar.gz diff --git a/numpy-1.26.2.tar.gz b/numpy-1.26.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3c202a61190a7cc7ed4d8ce57c21e485ce997a3d Binary files /dev/null and b/numpy-1.26.2.tar.gz differ diff --git a/numpy-html.zip b/numpy-html.zip index 4ff0519980895aed405d380bb2a4c74cee8bdca5..b37a496964f5790a131d0cc0f0144513549bfc8c 100644 Binary files a/numpy-html.zip and b/numpy-html.zip differ diff --git a/numpy.spec b/numpy.spec index b8beaf93b0febae8e3ff07f40da21b6ed24e4d23..6bc08a889d6ed7e2ca6827a042036a6c1bcb0ced 100644 --- a/numpy.spec +++ b/numpy.spec @@ -6,14 +6,14 @@ Name: numpy Summary: A fast multidimensional array facility for Python -Version: 1.24.4 +Version: 1.26.2 Release: %{anolis_release}%{?dist} Epoch: 1 License: BSD and Python and ASL 2.0 URL: http://www.%{name}.org/ Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz -Source1: https://%{name}.org/doc/1.24/%{name}-html.zip +Source1: https://%{name}.org/doc/1.26/%{name}-html.zip %description NumPy is a community-driven open source project developed by @@ -27,8 +27,8 @@ Summary: A fast multidimensional array facility for Python License: BSD %{?python_provide:%python_provide python3-numpy} -Provides: libnpymath-static = %{epoch}:%{version}-%{release} -Provides: numpy = %{epoch}:%{version}-%{release} +Provides: libnpymath-static = %{EVR} +Provides: numpy = %{EVR} Obsoletes: numpy < 1:1.10.1-3 BuildRequires: gcc gcc-c++ gcc-gfortran @@ -45,13 +45,13 @@ It also includes mathematical functions for performing operations on these array %package -n python3-numpy-f2py Summary: f2py for %{name} -Requires: python3-%{name} = %{epoch}:%{version}-%{release} +Requires: python3-%{name} = %{EVR} Provides: python3-f2py = %{version}-%{release} Requires: python3-devel Obsoletes: python3-f2py <= 2.45.241_1927 %{?python_provide:%python_provide python3-numpy-f2py} -Provides: f2py = %{epoch}:%{version}-%{release} -Provides: numpy-f2py = %{epoch}:%{version}-%{release} +Provides: f2py = %{EVR} +Provides: numpy-f2py = %{EVR} Obsoletes: numpy-f2py < 1:1.10.1-3 %description -n python3-%{name}-f2py @@ -67,7 +67,7 @@ in their Python code, and pass data back and forth between the two languages. %package -n python3-%{name}-doc Summary: Documentation for %{name} -Requires: python3-numpy = %{epoch}:%{version}-%{release} +Requires: python3-numpy = %{EVR} BuildArch: noarch %description -n python3-%{name}-doc @@ -84,11 +84,12 @@ libraries = %{blaslib}%{blasvar} library_dirs = %{_libdir} EOF +%generate_buildrequires +%pyproject_buildrequires -R -Csetup-args=-Dblas=flexiblas -Csetup-args=-Dlapack=lapack + %build %set_build_flags - -env OPENBLAS=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} CFLAGS="%{optflags}" - %{__python3} setup.py build +%pyproject_wheel -Csetup-args=-Dblas=flexiblas -Csetup-args=-Dlapack=lapack %install mkdir docs @@ -96,27 +97,24 @@ pushd docs unzip %{SOURCE1} popd -env OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} CFLAGS="%{optflags}" - %{__python3} setup.py install --root %{buildroot} - +%pyproject_install pushd %{buildroot}%{_bindir} &> /dev/null +ln -s f2py f2py3 +ln -s f2py f2py%{python3_version} ln -s f2py3 f2py.numpy popd &> /dev/null mkdir -p %{buildroot}%{_includedir} -ln -s %{python3_sitearch}/%{name}/core/include/%{name}/ \ - %{buildroot}%{_includedir}/%{name} - +ln -s %{python3_sitearch}/%{name}/core/include/numpy/ %{buildroot}%{_includedir}/numpy %check %if %{with tests} -export SETUPTOOLS_USE_DISTUTILS=stdlib - export PYTHONPATH=%{buildroot}%{python3_sitearch} python3 runtests.py \ --no-build \ -- -ra \ - -k 'not test_ppc64_ibm_double_double128 and not test_to_int_scalar' + -k 'not test_ppc64_ibm_double_double128' \ + -W "ignore:pkg_resources is deprecated as an API::pkg_resources" %endif %files -n python3-%{name} @@ -146,6 +144,7 @@ python3 runtests.py \ %{python3_sitearch}/%{name}/array_api/ %{python3_sitearch}/%{name}/_pyinstaller/ %{python3_sitearch}/%{name}/_typing/ +%{python3_sitearch}/%{name}/_utils/ %exclude %{python3_sitearch}/%{name}/LICENSE.txt %files -n python3-%{name}-f2py @@ -159,6 +158,9 @@ python3 runtests.py \ %doc docs/* THANKS.* site.cfg.example %changelog +* Tue Dec 26 2023 Funda Wang - 1:1.26.2-1 +- New version 1.26.2 + * Mon Dec 25 2023 Chunmei Xu - 1:1.24.4-1 - update to 1.24.4