15
0

Accepting request 783089 from home:benoit_monin:branches:devel:languages:python

- update to version 2.6.1
- disable python2 build: Pygments is python 3 only now
- remove shebang from pygments/lexers/_usd_builtins.py: unneeded

OBS-URL: https://build.opensuse.org/request/show/783089
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=60
This commit is contained in:
2020-03-09 22:31:50 +00:00
committed by Git OBS Bridge
parent 6d9951f6c1
commit 5053a4cf20
4 changed files with 56 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Pygments
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,10 @@
#
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Pygments
Version: 2.5.2
Version: 2.6.1
Release: 0
Summary: A syntax highlighting package written in Python
License: BSD-2-Clause
@@ -57,6 +58,9 @@ source code. Highlights are:
# Remove non-oss licensed files, see bnc# 760344
rm tests/examplefiles/{Sorting,test}.mod
# Remove unnecessary shebang
sed -i '1 { /^#!/ d }' pygments/lexers/_usd_builtins.py
%build
%python_build