From e2a8ab7854cf055bae9825c14290ae62f6fe42de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 15 Nov 2019 02:11:47 +0100 Subject: [PATCH] Subpackage python2-pygments has been removed https://fedoraproject.org/wiki/Changes/RetirePython2 --- python-pygments.spec | 44 +++++--------------------------------------- 1 file changed, 5 insertions(+), 39 deletions(-) diff --git a/python-pygments.spec b/python-pygments.spec index efc46db..ec4b0fc 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -7,7 +7,7 @@ Name: python-pygments Version: 2.4.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: %{sum} License: BSD @@ -32,29 +32,6 @@ need to prettify source code. Highlights are: * ... and it highlights even Brainf*ck! -%package -n python2-%{srcname} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-nose -Requires: python2-setuptools -Summary: %{sum} -%{?python_provide:%python_provide python2-%{srcname}} - -%description -n python2-%{srcname} -Pygments 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 that increase highlighting - quality - * support for new languages and formats are added easily; most - languages use a simple regex-based lexing mechanism - * a number of output formats is available, among them HTML, RTF, - LaTeX and ANSI sequences - * it is usable as a command-line tool and as a library - * ... and it highlights even Brainf*ck! - %package -n python3-%{srcname} BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -86,14 +63,9 @@ need to prettify source code. Highlights are: %build %{__sed} -i 's/\r//' LICENSE -%py2_build %py3_build %install -# Python 2 install -%py2_install - -# Python 3 install %py3_install %if %{with docs} @@ -104,19 +76,9 @@ cp -r doc/docs doc/reST %check -make test PYTHON=%{__python2} make test PYTHON=%{__python3} -%files -n python2-pygments -%doc AUTHORS CHANGES doc/reST TODO -%if %{with docs} -%doc build/sphinx/html -%endif -%license LICENSE -%{python2_sitelib}/pygments/ -%{python2_sitelib}/Pygments-%{version}-py%{python2_version}.egg-info/ - %files -n python3-pygments %doc AUTHORS CHANGES doc/reST TODO %license LICENSE @@ -129,6 +91,10 @@ make test PYTHON=%{__python3} %endif %changelog +* Fri Nov 15 2019 Miro Hrončok - 2.4.2-6 +- Subpackage python2-pygments has been removed + See https://fedoraproject.org/wiki/Changes/RetirePython2 + * Thu Oct 03 2019 Miro Hrončok - 2.4.2-5 - Rebuilt for Python 3.8.0rc1 (#1748018)