%bcond_without dotests Name: pandas Version: 1.3.3 Release: 1 Summary: Python library providing high-performance data analysis tools License: BSD URL: https://pandas.pydata.org/ Source0: https://github.com/pandas-dev/pandas/releases/download/v%{version}/%{name}-%{version}.tar.gz %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") %global _description %{expand: pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.} BuildRequires: python3-devel >= 3.7.11 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 >= 3.7.11 Requires: libgcc >= 8.3.0 Requires: libstdc++ >= 8.3.0 Requires: python3-numpy >= 1.21.2 Requires: python3-pytz >= 2019.3 Requires: python3-dateutil >= 2.8.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 python3 setup.py build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} 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 hypothesis pip3 install python-dateutil pip3 install pytz ulimit -d unlimited ulimit -n unlimited ulimit -m unlimited ( pytest pandas || true ) deactivate %endif %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files -n python3-%{name} %defattr(-,root,system,-) %license LICENSE %doc README.md %{python3_sitearch}/%{name} %{python3_sitearch}/%{name}-*.egg-info %changelog * Thu Sep 16 2021 Ayappan P - 1.3.3-1 - First port of pandas to AIX Toolbox