## START: Set by rpmautospec ## (rpmautospec version 0.6.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 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 %pytest -v --import-mode importlib %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %license EXTERNAL_LICENSES %changelog ## START: Generated by rpmautospec * Thu Jun 27 2024 Sandro - 0.0.6-2 - Uncommitted changes * Wed Jun 19 2024 Sandro - 0.0.6-1 - Initial package ## END: Generated by rpmautospec