Summary: A generic syntax highlighter as Python 3 module
Summary(pl.UTF-8): Moduł Pythona 3 do ogólnego podświetlania składni
Name: python3-%{module}
-Version: 2.11.2
-Release: 4
+Version: 2.13.0
+Release: 1
License: BSD
Group: Development/Languages/Python
#Source0Download: https://pypi.org/simple/pygments/
Source0: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
-# Source0-md5: 217b4355612df4b61dc570df4b0148ba
+# Source0-md5: 6ccae578d28d18968b30a4711652fd9a
Patch0: rpmspec.patch
URL: https://pygments.org/
-BuildRequires: python3 >= 1:3.5
-BuildRequires: python3-devel >= 1:3.5
-BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3 >= 1:3.6
+BuildRequires: python3-devel >= 1:3.6
+BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%{?with_doc:BuildRequires: sphinx-pdg}
-Requires: python3-modules >= 1:3.5
+Requires: python3-modules >= 1:3.6
Requires: python3-setuptools
Conflicts: python-pygments < 2.5.2
BuildArch: noarch
---- Pygments-2.0.2/pygments/lexers/installers.py~ 2014-11-10 21:17:51.000000000 +0200
-+++ Pygments-2.0.2/pygments/lexers/installers.py 2015-06-15 14:57:19.665609691 +0300
-@@ -201,7 +201,8 @@
+--- Pygments-2.13.0/pygments/lexers/installers.py.orig 2022-09-01 19:07:12.905773545 +0200
++++ Pygments-2.13.0/pygments/lexers/installers.py 2022-09-01 19:11:33.161030288 +0200
+@@ -203,7 +203,8 @@ class RPMSpecLexer(RegexLexer):
(r'.', Text),
],
'macro': [
-- (r'%define.*\n', Comment.Preproc),
-+ (r'%(?:un)?define.*\n', Comment.Preproc),
-+ (r'%include.*\n', Comment.Preproc),
+- (r'%define.*$', Comment.Preproc),
++ (r'%(?:un)?define.*$', Comment.Preproc),
++ (r'%include.*$', Comment.Preproc),
(r'%\{\!\?.*%define.*\}', Comment.Preproc),
(r'(%(?:if(?:n?arch)?|else(?:if)?|endif))(.*)$',
bygroups(Comment.Preproc, Text)),