Name: python-fastrand Version: 3.0.5 Release: %autorelease Summary: Fast random number generation in Python License: Apache-2.0 URL: https://github.com/lemire/fastrand # PyPI source does not have demo code Source: %{url}/archive/v%{version}/fastrand-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: gcc # C code uses 64 bit integers ExcludeArch: %{ix86} # Fill in the actual package description to submit package to Fedora %global _description %{expand: Fast random number generation in an interval in Python using PCG: Up to 10x faster than random.randint.} %description %_description %package -n python3-fastrand Summary: %{summary} %description -n python3-fastrand %_description %prep %autosetup -p1 -n fastrand-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l fastrand %check %pyproject_check_import %py3_test_envvars %python3 demo.py %files -n python3-fastrand -f %{pyproject_files} %doc demo.py %changelog %autochangelog