2012-02-01 15:07:53 +04:00
|
|
|
%define tarname Pygments
|
|
|
|
|
2013-12-08 17:07:11 +04:00
|
|
|
Summary: Syntax highlighting package written in Python
|
2018-03-12 23:25:21 +03:00
|
|
|
Name: python-pygments
|
|
|
|
Version: 2.2.0
|
2019-12-23 13:02:31 +00:00
|
|
|
Release: 4
|
2013-12-08 17:07:11 +04:00
|
|
|
License: BSD
|
2018-03-12 23:25:21 +03:00
|
|
|
Group: Development/Python
|
2013-12-08 17:07:11 +04:00
|
|
|
Url: http://pygments.org/
|
2018-03-12 23:25:21 +03:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
|
|
|
|
BuildRequires: pkgconfig(python)
|
|
|
|
BuildRequires: pkgconfig(python3)
|
2018-03-12 23:28:25 +03:00
|
|
|
BuildRequires: python-setuptools
|
2018-03-12 23:25:21 +03:00
|
|
|
BuildRequires: python3-setuptools
|
2018-03-12 23:28:25 +03:00
|
|
|
Requires: python-pkg-resources
|
2018-03-12 23:25:21 +03:00
|
|
|
BuildArch: noarch
|
2018-03-13 00:10:56 +03:00
|
|
|
Obsoletes: python3-pygments < 2.2.0
|
|
|
|
Provides: python3-pygments = %{version}-%{release}
|
2012-02-01 15:07:53 +04:00
|
|
|
|
|
|
|
%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!
|
|
|
|
|
2018-03-12 23:25:21 +03:00
|
|
|
%files
|
|
|
|
%doc AUTHORS CHANGES LICENSE TODO
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{_bindir}/pygmentize
|
|
|
|
%{_mandir}/man1/pygmentize.*
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
|
|
|
%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 TODO
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------
|
|
|
|
|
2012-02-01 15:07:53 +04:00
|
|
|
%prep
|
2014-12-12 13:38:33 +04:00
|
|
|
%setup -qn %{tarname}-%{version}
|
2012-02-01 15:07:53 +04:00
|
|
|
|
2018-03-12 23:25:21 +03:00
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
2012-02-01 15:07:53 +04:00
|
|
|
%build
|
2018-03-12 23:25:21 +03:00
|
|
|
pushd %{py3dir}
|
|
|
|
%py3_build
|
|
|
|
popd
|
|
|
|
%py_build
|
2012-02-01 15:07:53 +04:00
|
|
|
|
|
|
|
%install
|
2018-03-12 23:25:21 +03:00
|
|
|
pushd %{py3dir}
|
|
|
|
%py3_install
|
|
|
|
popd
|
|
|
|
%py_install
|
2012-02-01 15:07:53 +04:00
|
|
|
|
2018-03-12 23:25:21 +03:00
|
|
|
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
|