## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 aw-core %global commit 3b83ab542406349b3d5e601318289b77d23d906f %global short_commit %(c=%{commit}; echo ${c:0:7}) Name: python-%{srcname} Version: 0.5.16^20240507.%{short_commit} Release: %autorelease Summary: Core library for ActivityWatch License: MPL-2.0 URL: https://github.com/ActivityWatch/aw-core Source: %{url}/archive/%{commit}/%{srcname}-%{short_commit}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: help2man BuildRequires: python3dist(pytest) %global _description %{expand: Core library for ActivityWatch.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{commit} # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -ri '/^[[:blank:]]*pytest-cov\b/d' pyproject.toml sed -ri '/^[[:blank:]]*pylint\b/d' pyproject.toml sed -ri '/^[[:blank:]]*black\b/d' pyproject.toml # works also with 3.9 on f39 and 3.11 on f40, so unpinning sed -ri 's/platformdirs = "3.10"/platformdirs = ">=3.9"/' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files {aw_core,aw_datastore,aw_transform,aw_query} install -Dm 0644 %{_builddir}/%{srcname}-%{commit}/aw_cli/* -t %{buildroot}%{python3_sitelib}/aw_cli mkdir -p %{buildroot}%{_mandir}/man1 help2man --no-discard-stderr %{buildroot}%{_bindir}/aw-cli -o %{buildroot}%{_mandir}/man1/aw-cli.1 %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %license LICENSE.txt %{_mandir}/man1/aw-cli.1* %{_bindir}/aw-cli %{python3_sitelib}/aw_cli %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.5.16^20240507.3b83ab5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jul 09 2024 Carl George - 0.5.16^20240507.3b83ab5-3 - Remove platformdirs upper limit * Sat Jun 08 2024 Python Maint - 0.5.16^20240507.3b83ab5-2 - Rebuilt for Python 3.13 * Sun Jun 02 2024 Łukasz Wojniłowicz - 0.5.16^20240507.3b83ab5-1 - Initial import (fedora#2281000). ## END: Generated by rpmautospec