## 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 Name: python-pygments-ansi-color Version: 0.3.0 Release: %autorelease Summary: ANSI color-code highlighting License: Apache-2.0 URL: https://github.com/chriskuehl/pygments-ansi-color # PyPI tarball doesn't include tests Source: %{url}/archive/v%{version}/pygments-ansi-color-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest %global _description %{expand: This package provides an ANSI color-code highlighting lexer for Pygments.} %description %_description %package -n python3-pygments-ansi-color Summary: %{summary} %description -n python3-pygments-ansi-color %_description %prep %autosetup -p1 -n pygments-ansi-color-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pygments_ansi_color %check %pytest -v %files -n python3-pygments-ansi-color -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Dec 13 2024 Davide Cavalca - 0.3.0-1 - Initial import; Fixes: RHBZ#2332278 ## END: Generated by rpmautospec