forked from pool/python-Pygments
Accepting request 951979 from home:benoit_monin:branches:devel:languages:python
- update to 2.11.2 - backport elpi_fix_catastrophic_backtracking.patch - switch prep stage to autosetup - remove commented-out shebang removal OBS-URL: https://build.opensuse.org/request/show/951979 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=80
This commit is contained in:
@@ -26,13 +26,15 @@
|
||||
%define skip_python2 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-Pygments
|
||||
Version: 2.11.1
|
||||
Version: 2.11.2
|
||||
Release: 0
|
||||
Summary: A syntax highlighting package written in Python
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://pygments.org
|
||||
Source: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM -- backported from dbd7931f9d60
|
||||
Patch1: elpi_fix_catastrophic_backtracking.patch
|
||||
BuildRequires: %{python_module base >= 3.5}
|
||||
# We need pytest just because of its test runner, it seems even
|
||||
# python3 stdlib unittest runner doesn't work
|
||||
@@ -67,10 +69,7 @@ source code. Highlights are:
|
||||
* highlights Brainfuck
|
||||
|
||||
%prep
|
||||
%setup -q -n Pygments-%{version}
|
||||
|
||||
# Remove unnecessary shebang
|
||||
# sed -i '1 { /^#!/ d }' pygments/lexers/_usd_builtins.py
|
||||
%autosetup -n Pygments-%{version} -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user