Files
python-pygments/python-pygments.spec
2026-03-11 23:48:51 +08:00

42 lines
1.1 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname pygments
Name: python-pygments
Version: 2.19.2
Release: %autorelease
Summary: Syntax highlighting
License: BSD-2-clause
URL: https://pygments.org/
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): -l pygments
BuildOption(check): -e 'pygments.sphinxext*'
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(docutils)
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%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}