python-pygments/python-pygments.spec

86 lines
2.5 KiB
RPMSpec
Raw Normal View History

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
2020-03-19 12:15:43 +00:00
Release: 5
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
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!
2020-03-19 12:15:43 +00:00
#--------------------------------------------------------------------
%package -n python2-pygments
Summary: Syntax highlighting package written in Python3
Group: Development/Python
%description -n python2-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 python2-pygments
2018-03-12 23:25:21 +03:00
%doc AUTHORS CHANGES LICENSE TODO
2020-03-19 12:15:43 +00:00
%{python2_sitelib}/*
2018-03-12 23:25:21 +03:00
#--------------------------------------------------------------------
%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}/*
2020-03-19 12:15:43 +00:00
%{_bindir}/pygmentize
%{_mandir}/man1/pygmentize.*
2018-03-12 23:25:21 +03:00
#--------------------------------------------------------------------
2012-02-01 15:07:53 +04:00
%prep
%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
2020-03-19 12:15:43 +00:00
%py2_build
2012-02-01 15:07:53 +04:00
%install
2020-03-19 12:15:43 +00:00
%py2_install
2018-03-12 23:25:21 +03:00
pushd %{py3dir}
%py3_install
popd
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