## 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 ipython-pygments-lexers Name: python-%{pypi_name} Version: 1.1.1 Release: %{autorelease} Summary: Defines a variety of Pygments lexers for highlighting IPython code %global forgeurl https://github.com/ipython/ipython-pygments-lexers %global tag %{version} %forgemeta License: BSD-3-Clause URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} %global _description %{expand: A Pygments plugin for IPython code & console sessions IPython is an interactive Python shell. Among other features, it adds some special convenience syntax, including %magics, !shell commands and help?. This package contains lexers for these, to use with the Pygments syntax highlighting package.} %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 ipython_pygments_lexers %check %pytest -v %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Mar 14 2025 Sandro - 1.1.1-1 - Initial package ## END: Generated by rpmautospec