mirror of
https://abf.rosa.ru/djam/python-pygments.git
synced 2025-02-23 15:02:48 +00:00
Rework py2 and py3
This commit is contained in:
parent
b0b56d3a3e
commit
a3f8b6502a
1 changed files with 19 additions and 9 deletions
|
@ -3,7 +3,7 @@
|
|||
Summary: Syntax highlighting package written in Python
|
||||
Name: python-pygments
|
||||
Version: 2.2.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
License: BSD
|
||||
Group: Development/Python
|
||||
Url: http://pygments.org/
|
||||
|
@ -14,8 +14,6 @@ BuildRequires: python-setuptools
|
|||
BuildRequires: python3-setuptools
|
||||
Requires: python-pkg-resources
|
||||
BuildArch: noarch
|
||||
Obsoletes: python3-pygments < 2.2.0
|
||||
Provides: python3-pygments = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Pygments is a syntax highlighting package written in Python. It is a
|
||||
|
@ -31,11 +29,21 @@ prettify source code. Highlights are:
|
|||
* it is usable as a command-line tool and as a library
|
||||
* ... and it highlights even Brainf*ck!
|
||||
|
||||
%files
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
%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
|
||||
%doc AUTHORS CHANGES LICENSE TODO
|
||||
%{python_sitelib}/*
|
||||
%{_bindir}/pygmentize
|
||||
%{_mandir}/man1/pygmentize.*
|
||||
%{python2_sitelib}/*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
@ -52,6 +60,8 @@ prettify source code.
|
|||
%files -n python3-pygments
|
||||
%doc AUTHORS CHANGES LICENSE TODO
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/pygmentize
|
||||
%{_mandir}/man1/pygmentize.*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
@ -64,12 +74,12 @@ cp -a . %{py3dir}
|
|||
pushd %{py3dir}
|
||||
%py3_build
|
||||
popd
|
||||
%py_build
|
||||
%py2_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
pushd %{py3dir}
|
||||
%py3_install
|
||||
popd
|
||||
%py_install
|
||||
|
||||
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
|
||||
|
|
Loading…
Add table
Reference in a new issue