## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 pkgname huami-token %global modname huami_token Name: %{pkgname} Version: 0.8.0 Release: %autorelease Summary: This script retrieves the Bluetooth access token for the watch or band from Huami servers. Additionally, it downloads the AGPS data packs, cep_alm_pak.zip and cep_7days.zip. # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: MIT URL: https://codeberg.org/argrento/huami-token Source: %{pypi_source %{modname}} Patch: 01-switch-to-pycrytodomex.patch BuildSystem: pyproject # Replace ... with top-level Python module names as arguments, you can use globs BuildOption(install): -l %{modname} BuildOption(generate_buildrequires): -x dev BuildArch: noarch BuildRequires: python3-devel # Fill in the actual package description to submit package to Fedora %global _description %{expand: This script retrieves the Bluetooth access token for a watch or band from Huami servers. Additionally, it downloads the AGPS data packs, cep_alm_pak.zip and cep_7days.zip.} %description %_description # For official Fedora packages, review which extras should be actually packaged # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras %pyproject_extras_subpkg -n %{pkgname} dev %files -n %{pkgname} -f %{pyproject_files} %{_bindir}/%{pkgname} %changelog ## START: Generated by rpmautospec * Mon Mar 02 2026 Daniel Demus - 0.8.0-1 - Release 0.8.0 ## END: Generated by rpmautospec