# Testcases run till 63%, then stops the rpmbuild as well.So disable by default. %bcond_with dotests Name: scipy Version: 1.7.1 Release: 1 Summary: Scientific Tools for Python License: BSD URL: http://www.scipy.org/scipylib/index.html Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") %global _description %{expand: Scipy is open-source software for mathematics, science, and engineering. The core library is NumPy which provides convenient and fast N-dimensional array manipulation. The SciPy library is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization. Together, they run on all popular operating systems, are quick to install, and are free of charge. NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers.} BuildRequires: python3-devel >= 3.7.11 BuildRequires: python3-pybind11 >= 2.7.1 BuildRequires: python3-numpy >= 1.21.2 BuildRequires: python3-numpy-f2py >= 1.21.2 BuildRequires: python3-Cython >= 0.29.24 %description %{_description} %package -n python3-%{name} Summary: %{summary} Requires: python3-numpy >= 1.21.2 Requires: python3 >= 3.7.11 Requires: openblas >= 0.3.15 Requires: libstdc++ >= 8.3.0 Requires: libgcc >= 8.3.0 %description -n python3-%{name} %{_description} %prep %autosetup -n %{name}-%{version} -p1 %build export PATH=/opt/freeware/bin:$PATH ulimit -d unlimited ulimit -m unlimited export SCIPY_USE_PYTHRAN=0 python3 setup.py build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} export SCIPY_USE_PYTHRAN=0 python3 setup.py install --root %{buildroot} %check %if %{with dotests} python3 -m venv --system-site-packages python_venv . ./python_venv/bin/activate pip3 install pytest pip3 install pythran ulimit -d unlimited ulimit -n unlimited ulimit -m unlimited # ulimit -f unlimited ( python runtests.py -m 'full' -v || true ) deactivate %endif %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files -n python3-%{name} %defattr(-,root,system,-) %license LICENSE.txt %doc README.rst %{python3_sitearch}/%{name} %{python3_sitearch}/%{name}-*.egg-info %changelog * Thu Sep 16 2021 Ayappan P - 1.7.1-1 - First port of scipy to AIX Toolbox