Summary(pl.UTF-8): Moduł Pythona 2.x do ogólnego podświetlania składni
Name: python-%{module}
Version: 2.0.2
-Release: 1
+Release: 2
License: BSD
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
# Source0-md5: 238587a1370d62405edabd0794b3ec4a
+Patch0: rpmspec.patch
URL: http://pygments.org/
%if %{with python2}
BuildRequires: python
%prep
%setup -q -n Pygments-%{version}
+%patch0 -p1
%build
%if %{with python2}
--- /dev/null
+--- 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 @@
+ (r'.', Text),
+ ],
+ 'macro': [
+- (r'%define.*\n', Comment.Preproc),
++ (r'%(?:un)?define.*\n', Comment.Preproc),
++ (r'%include.*\n', Comment.Preproc),
+ (r'%\{\!\?.*%define.*\}', Comment.Preproc),
+ (r'(%(?:if(?:n?arch)?|else(?:if)?|endif))(.*)$',
+ bygroups(Comment.Preproc, Text)),