mirror of
https://abf.rosa.ru/djam/python-pygments.git
synced 2025-02-23 15:02:48 +00:00
Merge pull request #1 from djam/python-pygments:rosa2019.1
Backports and update
This commit is contained in:
commit
b2891cd12c
2 changed files with 29 additions and 18 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
Pygments-2.2.0.tar.gz: 5c6714bd6fd950c1478889f7b72fc7f6771d5163
|
||||
pygments-2.8.1.tar.gz: 44a177de40a41b9fd2d21f10c6529c21364e4efa
|
||||
|
|
|
@ -1,21 +1,19 @@
|
|||
%define tarname Pygments
|
||||
%define tarname pygments
|
||||
|
||||
Summary: Syntax highlighting package written in Python
|
||||
Name: python-pygments
|
||||
Version: 2.2.0
|
||||
Release: 2
|
||||
Version: 2.8.1
|
||||
Release: 1
|
||||
License: BSD
|
||||
Group: Development/Python
|
||||
Url: http://pygments.org/
|
||||
Source0: https://files.pythonhosted.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz
|
||||
BuildRequires: pkgconfig(python)
|
||||
Source0: https://github.com/pygments/pygments/archive/%{version}.tar.gz?/%{tarname}-%{version}.tar.gz
|
||||
BuildRequires: pkgconfig(python2)
|
||||
BuildRequires: pkgconfig(python3)
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: pythonegg(setuptools)
|
||||
BuildRequires: python3egg(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,22 @@ prettify source code. Highlights are:
|
|||
* it is usable as a command-line tool and as a library
|
||||
* ... and it highlights even Brainf*ck!
|
||||
|
||||
%files
|
||||
%doc AUTHORS CHANGES LICENSE TODO
|
||||
%{python_sitelib}/*
|
||||
%{_bindir}/pygmentize
|
||||
%{_mandir}/man1/pygmentize.*
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
%package -n python2-pygments
|
||||
%py2_migration_meta 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
|
||||
%{python2_sitelib}/*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
@ -50,8 +59,10 @@ such as forum systems, wikis or other applications that need to
|
|||
prettify source code.
|
||||
|
||||
%files -n python3-pygments
|
||||
%doc AUTHORS CHANGES LICENSE TODO
|
||||
%doc AUTHORS CHANGES LICENSE
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/pygmentize
|
||||
%{_mandir}/man1/pygmentize.*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
@ -64,12 +75,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