## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## 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 python-proton-vpn-api-core %global shortname proton-vpn-api-core %global forgeurl https://github.com/ProtonVPN/python-proton-vpn-api-core Version: 0.36.6 %global tag v%{version} %forgemeta Name: %{srcname} Release: %autorelease Summary: Expose a uniform API to available Proton VPN services License: GPL-3.0-or-later URL: %{forgeurl} Source: %{url}/archive/%{tag}/%{srcname}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-asyncio) BuildArch: noarch %global _description %{expand: The proton-vpn-core-api acts as a facade to the other Proton VPN components, exposing a uniform API to the available Proton VPN services.} %description %_description %package -n python3-%{shortname} Summary: %{summary} %description -n python3-%{shortname} %_description %prep %autosetup -n %{srcname}-%{version} # Do not measure test coverage sed -i '|addopts = --cov=proton/vpn/core/ --cov-report html --cov-report term|d' setup.cfg %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files proton %check %pyproject_check_import %pytest %files -n python3-%{shortname} -f %{pyproject_files} %doc CHANGELOG.md %doc README.md %changelog ## START: Generated by rpmautospec * Thu Nov 14 2024 John Doe - 0.36.6-1 - Uncommitted changes ## END: Generated by rpmautospec