## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name crick Name: python-%{pypi_name} Version: 0.0.6 Release: %{autorelease} Summary: High performance approximate and streaming algorithms %global forgeurl https://github.com/dask/crick %global tag %{version} %forgemeta # Apache-2.0 applies to `crick/tdigest_stubs.c` License: BSD-3-Clause AND Apache-2.0 URL: %forgeurl Source: %forgesource ExcludeArch: %{ix86} BuildRequires: gcc BuildRequires: python3-devel # Test dependencies BuildRequires: python3dist(pytest) BuildRequires: python3dist(scipy) %global _description %{expand: Crick is a fast library of approximate and streaming algorithms. It is still a work in progress, use at your own risk.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 # Don't install devel (.c, .h) files # Also exclude test dir # Sent upstream: https://github.com/dask/crick/pull/52 sed -r \ -e 's/(include-package-data = )true/\1false/' \ -e '/namespaces/a exclude = ["crick.tests*"]' \ -i pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check # Fix layout to allow loading modules from installed location using # `--import-mode=importlib`. With upstream's layout the imports fail, # no matter what mode is paased to `import-mode`. mv -v crick/tests/ . %pytest --import-mode=importlib %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %license EXTERNAL_LICENSES %changelog ## START: Generated by rpmautospec * Tue Oct 29 2024 Sandro - 0.0.6-3 - Fix module import failing * Fri Jul 19 2024 Fedora Release Engineering - 0.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 28 2024 Sandro - 0.0.6-1 - Initial release (RHBZ#2293043) ## END: Generated by rpmautospec