rebuilt with python3 == 3.11 [release 1.26.0-2mamba;Fri Sep 29 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 11:31:46 +01:00
parent 559cf072bb
commit 8d332f9788

View File

@ -1,5 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-numpy Name: python-numpy
Version: 1.21.5 Version: 1.26.0
Release: 2mamba Release: 2mamba
Summary: NumPy: Scientific computing with Python NumPy Summary: NumPy: Scientific computing with Python NumPy
Group: System/Libraries/Python Group: System/Libraries/Python
@ -7,22 +8,26 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://numpy.org/ URL: https://numpy.org/
Source: https://pypi.debian.net/numpy/numpy-%{version}.zip Source: https://pypi.debian.net/numpy/numpy-%{version}.tar.gz
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libopenblas-devel BuildRequires: libopenblas-devel
BuildRequires: libpython3-devel BuildRequires: libpython311-devel
BuildRequires: python3.7dist(setuptools)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
BuildRequires: libblas-devel >= 3.9.0 BuildRequires: libblas-devel >= 3.9.0
%ifnarch arm aarch64 %ifnarch arm aarch64
BuildRequires: libquadmath-devel BuildRequires: libquadmath-devel
%endif %endif
BuildRequires: liblapack-devel BuildRequires: liblapack-devel
BuildRequires: gcc-fortran BuildRequires: gcc-fortran
BuildRequires: patchelf
BuildRequires: python-Cython-py3 BuildRequires: python-Cython-py3
BuildRequires: python-Cython-py310 BuildRequires: python-Cython-py310
BuildRequires: python-pyproject-metadata-py3
BuildRequires: python-pyproject-metadata-py310
%description %description
NumPy is the fundamental package needed for scientific computing with Python. NumPy is the fundamental package needed for scientific computing with Python.
@ -37,6 +42,8 @@ Arbitrary data-types can be defined.
This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases.
%if 0%{?with_pyver} %if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-numpy-devel < 1.26.0-2mamba
%pyver_package %pyver_package
%endif %endif
@ -52,48 +59,63 @@ C header files provided by NumPy.
%setup -q -n numpy-%{version} %setup -q -n numpy-%{version}
%build %build
CFLAGS="%{optflags}" %{__python} setup.py build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch}
#install -D -p -m 0644 doc/f2py/f2py.1 %{buildroot}%{_mandir}/man1/f2py%{pyver}.1 %if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/f2py; do
mv %{buildroot}${f}{,-%{?pyappend}}
done
%endif
%if !0%{?with_pyver} %if "%{?with_pyver}" == "3"
install -d -m0755 %{buildroot}%{_includedir} install -d -m0755 %{buildroot}%{_includedir}
ln -s %{python_sitearch}/numpy/core/include/numpy %{buildroot}%{_includedir}/numpy ln -s %{python_sitearch}/numpy/core/include/numpy %{buildroot}%{_includedir}/numpy
%endif %endif
%if "0%{?with_pyver}" != "03"
rm -f %{buildroot}%{_bindir}/f2py
%endif
%if "0%{?with_pyver}" != "03"
rm -f %{buildroot}%{_bindir}/f2py3
%endif
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} %files %{?pyappend}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/f2py* %{_bindir}/f2py*
#%{_mandir}/man1/f2py* %dir %{python_sitearch}/numpy-%{version}.dist-info
%{python_sitearch}/numpy-%{version}.dist-info/*
%dir %{python_sitearch}/numpy %dir %{python_sitearch}/numpy
%{python_sitearch}/numpy/* %{python_sitearch}/numpy/*
%{python_sitearch}/numpy-%{version}-py*.egg-info %if "%{?with_pyver}" == "3"
%if !0%{?with_pyver}
%files devel
%defattr(-,root,root)
%{_includedir}/numpy %{_includedir}/numpy
%endif %endif
%changelog %changelog
* Fri Sep 29 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.26.0-2mamba
- rebuilt with python3 == 3.11
* Fri Sep 22 2023 Automatic Build System <autodist@mambasoft.it> 1.26.0-1mamba
- automatic version update by autodist
* Tue Aug 01 2023 Automatic Build System <autodist@mambasoft.it> 1.25.2-1mamba
- automatic version update by autodist
* Sun Jul 09 2023 Automatic Build System <autodist@mambasoft.it> 1.25.1-1mamba
- automatic version update by autodist
* Sun Jun 18 2023 Automatic Build System <autodist@mambasoft.it> 1.25.0-1mamba
- automatic version update by autodist
* Mon Apr 24 2023 Automatic Build System <autodist@mambasoft.it> 1.24.3-1mamba
- automatic version update by autodist
* Fri Apr 14 2023 Automatic Build System <autodist@mambasoft.it> 1.24.2-1mamba
- automatic version update by autodist
* Sat Oct 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.23.3-1mamba
- update to 1.23.3
* Fri Aug 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.5-2mamba * Fri Aug 19 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.21.5-2mamba
- rebuilt with python 3.10 - rebuilt with python 3.10