From e85d6be7efe51216d8a09a9ac8d4ffffbb6ef64a Mon Sep 17 00:00:00 2001 From: Jvle Date: Wed, 11 Mar 2026 23:42:50 +0800 Subject: [PATCH] SPECS: update python-pygments to 2.19.2 Signed-off-by: Jvle --- python-pygments.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 python-pygments.spec diff --git a/python-pygments.spec b/python-pygments.spec new file mode 100644 index 0000000..2c11908 --- /dev/null +++ b/python-pygments.spec @@ -0,0 +1,43 @@ +# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors +# SPDX-FileContributor: Zheng Junjie +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname Pygments +%global pypi_name pygments + +Name: python-pygments +Version: 2.19.2 +Release: %autorelease +Summary: Syntax highlighting +License: BSD-2-clause +URL: https://pygments.org/ +#!RemoteAsset: sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887 +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch +BuildSystem: pyproject + +BuildOption(install): -l pygments +BuildOption(check): -e 'pygments.sphinxext*' + +BuildRequires: pyproject-rpm-macros +BuildRequires: pkgconfig(python3) +BuildRequires: python3dist(docutils) + +Provides: python3-pygments +%python_provide python3-pygments + +%description +Pygments is a syntax highlighting package written in Python. + +%generate_buildrequires +%pyproject_buildrequires + +%files -f %{pyproject_files} +%license LICENSE* +%doc README* +%{_bindir}/pygmentize + +%changelog +%{?autochangelog}