Name: testing-farm Version: 0.0.20 Release: %autorelease Summary: Testing Farm CLI License: Apache-2.0 URL: https://gitlab.com/testing-farm/cli Source0: %{pypi_source tft_cli} Patch0: deps-f39.patch Patch1: deps-f40.patch Patch2: deps-f41.patch BuildArch: noarch BuildRequires: python3-devel %description CLI tool for interacting with the Testing Farm API. %prep %setup -q -n tft_cli-%{version} %if 0%{?fedora} == 39 %patch 0 -p1 %endif %if 0%{?fedora} == 40 %patch 1 -p1 %endif %if 0%{?fedora} > 40 %patch 2 -p1 %endif %generate_buildrequires %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=v%{version} %pyproject_wheel %install %pyproject_install %pyproject_save_files tft %check %pyproject_check_import %files -n testing-farm -f %{pyproject_files} #%doc README.adoc # it's not in pypi source archive %{_bindir}/testing-farm