-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-pygments.spec
More file actions
42 lines (37 loc) · 1.37 KB
/
python-pygments.spec
File metadata and controls
42 lines (37 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%define tarname Pygments
%define module pygments
Summary: Syntax highlighting package written in Python
Name: python-%{module}
Version: 2.20.0
Release: 1
Group: Development/Python
License: BSD
Url: https://pygments.org/
Source0: https://github.com/pygments/pygments/archive/refs/tags/%{version}.tar.gz
BuildArch: noarch
BuildRequires: python%{pyver}dist(pip)
BuildRequires: python%{pyver}dist(setuptools)
BuildRequires: python%{pyver}dist(wheel)
BuildRequires: python%{pyver}dist(hatchling)
BuildSystem: python
%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!
%install -a
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1
%files
%doc AUTHORS CHANGES LICENSE
%{_bindir}/pygmentize
%{py_sitedir}/pygments
%{py_sitedir}/pygments*.*-info
%{_mandir}/man1/pygmentize.*