## 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 pypi_name ci-info Name: python-%{pypi_name} Version: 0.3.0 Release: %{autorelease} Summary: Continuous Integration Information %global forgeurl https://github.com/mgxd/ci-info %global tag %{version} %forgemeta License: MIT URL: %forgeurl Source: %forgesource # Don't install tests Patch: %{forgeurl}/pull/10.patch # Fix license classification Patch: %{forgeurl}/pull/11.patch BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: A Python implementation of watson/ci-info [1]. Get details about the current Continuous Integration environment. [1] https://github.com/watson/ci-info} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l ci_info %check # Tests require one of the supported CI environments # We won't bother, but rely on upstream's testing #%%pytest -v # Run import test in absence of useful unit tests %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %doc CHANGES.md README.md %changelog ## START: Generated by rpmautospec * Fri Nov 22 2024 Sandro - 0.3.0-1 - Package import ## END: Generated by rpmautospec