## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 srcname fitdecode Name: python-%{srcname} Version: 0.10.0 Release: %autorelease Summary: FIT file parser and decoder License: MIT URL: https://github.com/polyvertex/fitdecode # PyPI tarball doesn't include tests Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package provides a FIT file parsing and decoding library for Python.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst HISTORY.rst %{_bindir}/fitjson %{_bindir}/fittxt %changelog ## START: Generated by rpmautospec * Sat Aug 31 2024 Davide Cavalca - 0.10.0-1 - Initial import; Fixes: RHBZ#2295119 ## END: Generated by rpmautospec