Registration is now invite-only. Any user can make an invite, you need to create it here and give resulting link to someone to register.

About project

Pygments is a syntax highlighting package written in Python. It is a
generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to
prettify source code. Highlights are:

* a wide range of common languages and markup formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI
sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!

Last commit

avatar
termim has added b89cc0edb7
Update to 2.19.1.

Files in

100644 | 64 lines (51 sloc) | 1.85 KB
%global pypi_name pygments

Summary:	Syntax highlighting package written in Python
Name:		python-pygments
Version:	2.19.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://pygments.org/
Source0:	%pypi_source
Requires:	python-pkg-resources
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Pygments is a syntax highlighting package written in Python. It is a
generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to
prettify source code. Highlights are:

* a wide range of common languages and markup formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI
 sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!

#--------------------------------------------------------------------

%package -n python3-pygments
Summary:	Syntax highlighting package written in Python3
Group:		Development/Python

%description -n python3-pygments
Pygments is a syntax highlighting package written in Python. It is a
generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to
prettify source code.

%files -n python3-pygments
%doc AUTHORS CHANGES
%license LICENSE
%{_bindir}/pygmentize
%{_mandir}/man1/pygmentize.*
%{python3_sitelib}/*

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1