%global githash 5fc9d3c56 %global gitdate 20211110 Name: numba Version: 0.53.1 Release: %{gitdate}.git%{githash}%{?dist} Summary: NumPy aware dynamic Python compiler using LLVM License: Apache URL: https://github.com/numba/numba Source0: numba.tar.xz BuildRequires: doxygen cmake gcc-c++ python3-devel BuildRequires: llvm-devel python3-setuptools python3-numpy %description NumPy aware dynamic Python compiler using LLVM %package python3 Summary: Python files for numba Requires: llvmlite-python3 Requires: %{name} = %{version}-%{release} %description python3 This package contains python files for numba. %prep %setup -q -n %{name} %build # llvmlite any version sed -i "s|'llvmlite >=.*|'llvmlite',|" setup.py # python version sed -i "s|python_version = \"3.7\"|python_version = \"3.5\"|" setup.py sed -i "s|python_version = \"3.10\"|python_version = \"3.11\"|" setup.py # newer libs sed -i 's|use_tracing|tracing|g' numba/_dispatcher.cpp export NUMBA_DISABLE_TBB=1 %{__python3} setup.py build %install rm -rf %{buildroot} export NUMBA_DISABLE_TBB=1 %{__python3} setup.py install --root %{buildroot} %files %doc README.rst %license LICENSE %{_bindir}/* %files python3 %defattr(-,root,root,-) %{python3_sitearch}/* %changelog * Fri Mar 29 2019 Balint Cristian - github build