## START: Set by rpmautospec ## (rpmautospec version 0.7.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 forgeurl https://github.com/pyinfra-dev/pyinfra %global pypi_name pyinfra Name: python-%{pypi_name} Version: 3.1.1 %global tag v%{version} Release: %autorelease Summary: Provision, manage and deploy infrastructure License: MIT URL: https://pyinfra.com VCS: git:%{forgeurl}.git Source: %{forgesource} %forgemeta BuildArch: noarch BuildRequires: python3-devel # Test dependencies include extra formatting and coverage tests # that are not needed in Fedora CI BuildRequires: python3-pytest %global _description %{expand: pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers.} %description %_description %package -n python3-pyinfra Summary: %{summary} %description -n python3-pyinfra %_description %prep %forgesetup # Remove unneeded dependency sed -i '/configparser/d' setup.py # Remove unused scripts, package documentation # as text files rm docs/*.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Remove test files rm -r %{buildroot}%{python3_sitelib}/tests %pyproject_save_files -l pyinfra %check %pyproject_check_import %pytest %files -n python3-pyinfra -f %{pyproject_files} %{_bindir}/pyinfra %{python3_sitelib}/pyinfra_cli/ %license LICENSE.md %doc README.md %doc CHANGELOG.md %doc docs %changelog ## START: Generated by rpmautospec * Fri Dec 20 2024 John Doe - 3.1.1-1 - Uncommitted changes ## END: Generated by rpmautospec