From 05d2a87e0a39d90c33e44bb7ec18e84c19fc5fca Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:31:42 +0100 Subject: [PATCH] rebuilt with -py3 package [release 1.16.4-2mamba;Sun Aug 18 2019] --- python-numpy.spec | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/python-numpy.spec b/python-numpy.spec index 89220d4..f6018da 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -1,6 +1,6 @@ Name: python-numpy Version: 1.16.4 -Release: 1mamba +Release: 2mamba Summary: NumPy: Scientific computing with Python NumPy Group: System/Libraries/Python Vendor: openmamba @@ -39,23 +39,13 @@ This allows NumPy to seamlessly and speedily integrate with a wide variety of da %pyver_package %endif -%package py%{pyver} -Group: System/Libraries/Python -Summary: NumPy: array processing for numbers, strings, records, and objects -Obsoletes: python-numpy-py3 -%py_requires +%package devel +Group: Development/Libraries +Summary: C header files provided by NumPy +Requires: python-numpy = %{?epoch:%epoch:}%{version}-%{release} -%description py%{pyver} -NumPy is the fundamental package needed 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. +%description devel +C header files provided by NumPy. %prep %setup -q -n numpy-%{version} @@ -72,6 +62,11 @@ CFLAGS="%{optflags}" %{__python} setup.py build #install -D -p -m 0644 doc/f2py/f2py.1 %{buildroot}%{_mandir}/man1/f2py%{pyver}.1 +%if !0%{?with_pyver} +install -d -m0755 %{buildroot}%{_includedir} +ln -s %{python_sitearch}/nnumpy/core/include/numpy %{buildroot}%{_includedir}/numpy +%endif + %if 0%{?with_pyver} rm -f %{buildroot}%{_bindir}/f2py %endif @@ -87,7 +82,16 @@ rm -f %{buildroot}%{_bindir}/f2py %{python_sitearch}/numpy/* %{python_sitearch}/numpy-%{version}-py*.egg-info +%if !0%{?with_pyver} +%files devel +%defattr(-,root,root) +%{_includedir}/numpy +%endif + %changelog +* Sun Aug 18 2019 Silvan Calarco 1.16.4-2mamba +- rebuilt with -py3 package + * Wed May 29 2019 Automatic Build System 1.16.4-1mamba - automatic version update by autodist