mirror of
https://abf.rosa.ru/djam/python-pygments.git
synced 2025-02-23 06:52:50 +00:00
This commit is contained in:
parent
73c5b274c1
commit
70bb20a8b2
2 changed files with 50 additions and 10 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
pygments-2.8.1.tar.gz: 44a177de40a41b9fd2d21f10c6529c21364e4efa
|
||||
pygments-2.11.2.tar.gz: 95b97c69501f0133dd81eea5b75d273cb6c0d845
|
||||
|
|
|
@ -2,16 +2,18 @@
|
|||
|
||||
Summary: Syntax highlighting package written in Python
|
||||
Name: python-pygments
|
||||
Version: 2.8.1
|
||||
Version: 2.11.2
|
||||
Release: 1
|
||||
License: BSD
|
||||
Group: Development/Python
|
||||
URL: https://pygments.org
|
||||
Source0: https://github.com/pygments/pygments/archive/%{version}.tar.gz?/%{tarname}-%{version}.tar.gz
|
||||
BuildRequires: pkgconfig(python2)
|
||||
BuildRequires: pkgconfig(python)
|
||||
BuildRequires: pkgconfig(python3)
|
||||
BuildRequires: pythonegg(setuptools)
|
||||
BuildRequires: python3egg(setuptools)
|
||||
BuildRequires: python38-devel
|
||||
BuildRequires: python38-setuptools
|
||||
Requires: python-pkg-resources
|
||||
BuildArch: noarch
|
||||
|
||||
|
@ -31,19 +33,20 @@ prettify source code. Highlights are:
|
|||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
%package -n python2-pygments
|
||||
%package -n python-pygments
|
||||
Summary: Syntax highlighting package written in Python3
|
||||
Group: Development/Python
|
||||
|
||||
%description -n python2-pygments
|
||||
%description -n python-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
|
||||
%files -n python-pygments
|
||||
%doc AUTHORS CHANGES LICENSE
|
||||
%{python2_sitelib}/*
|
||||
%{_bindir}/pygmentize2
|
||||
%{python_sitelib}/*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
@ -60,7 +63,25 @@ prettify source code.
|
|||
%files -n python3-pygments
|
||||
%doc AUTHORS CHANGES LICENSE
|
||||
%{python3_sitelib}/*
|
||||
%{_bindir}/pygmentize
|
||||
%{_bindir}/pygmentize3
|
||||
%{_mandir}/man1/pygmentize.*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
%package -n python38-pygments
|
||||
Summary: Syntax highlighting package written in Python3
|
||||
Group: Development/Python
|
||||
|
||||
%description -n python38-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 python38-pygments
|
||||
%doc AUTHORS CHANGES LICENSE
|
||||
%{python38_sitelib}/*
|
||||
%{_bindir}/pygmentize38
|
||||
%{_mandir}/man1/pygmentize.*
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
@ -69,17 +90,36 @@ prettify source code.
|
|||
%setup -qn %{tarname}-%{version}
|
||||
|
||||
cp -a . %{py3dir}
|
||||
cp -a . %{py38dir}
|
||||
|
||||
%build
|
||||
pushd %{py3dir}
|
||||
%py3_build
|
||||
popd
|
||||
%py2_build
|
||||
|
||||
pushd %{py38dir}
|
||||
%py38_build
|
||||
popd
|
||||
|
||||
%py_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py_install
|
||||
pushd %{buildroot}%{_bindir}
|
||||
mv pygmentize pygmentize2
|
||||
popd
|
||||
|
||||
pushd %{py3dir}
|
||||
%py3_install
|
||||
popd
|
||||
|
||||
pushd %{buildroot}%{_bindir}
|
||||
mv pygmentize pygmentize3
|
||||
popd
|
||||
|
||||
|
||||
pushd %{py38dir}
|
||||
%py38_install
|
||||
popd
|
||||
|
||||
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
|
||||
|
|
Loading…
Add table
Reference in a new issue