## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 pytest-cid %global common_description %{expand: This module is a plugin for the popular Python testing framework pytest. It compares data structures containing matching CIDs of different versions and encoding.} Name: python-%{pypi_name} Version: 1.1.2 Release: %autorelease BuildArch: noarch Summary: Pytest plugin to compare CIDs License: MPL-2.0 URL: https://github.com/ntninja/pytest-cid Source0: %{pypi_source pytest_cid} # https://github.com/ntninja/pytest-cid/pull/3 Patch1: python-pytest-cid-0001-Relax-dependencies.patch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-pytest-cov %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_description} %prep %autosetup -p1 -n pytest_cid-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pytest_cid %check %pyproject_check_import %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %license LICENSE %changelog ## START: Generated by rpmautospec * Tue Oct 08 2024 Peter Lemenkov - 1.1.2-2 - This patch was sent upstream * Sun Sep 01 2024 Peter Lemenkov - 1.1.2-1 - Initial build ## END: Generated by rpmautospec