## 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 %bcond_without check %global srcname aw-client Name: python-%{srcname} Version: 0.5.13 Release: %autorelease Summary: Client library for ActivityWatch in Python License: MPL-2.0 URL: https://github.com/ActivityWatch/aw-client Source: %{url}/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Client library for ActivityWatch in Python.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files aw_client %check # skip test_client.py due to a http connection error # skip test_failqueue.py due to missing aw_server dependency %pytest --ignore=tests/test_client.py \ --ignore=tests/test_failqueue.py %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %license LICENSE.txt %{_bindir}/aw-client %changelog ## START: Generated by rpmautospec * Mon Jun 24 2024 Łukasz Wojniłowicz - 0.5.13-1 - Initial import (fedora#2291346). ## END: Generated by rpmautospec