diff --git a/Pygments-2.2.0.tar.gz b/Pygments-2.2.0.tar.gz deleted file mode 100644 index 870d1b2b4497b473d4277411a75a242eb50a1e6a..0000000000000000000000000000000000000000 Binary files a/Pygments-2.2.0.tar.gz and /dev/null differ diff --git a/Pygments-2.6.1.tar.gz b/Pygments-2.6.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2a76de8592774e6e7a1e1719dcc502f3f184d584 Binary files /dev/null and b/Pygments-2.6.1.tar.gz differ diff --git a/import-directive.patch b/import-directive.patch deleted file mode 100644 index cc25063e40d3f7bf6f5bf7ae1e53e424ff405a6a..0000000000000000000000000000000000000000 --- a/import-directive.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur Pygments-2.2.0/pygments/sphinxext.py Pygments-2.2.0.patch/pygments/sphinxext.py ---- Pygments-2.2.0/pygments/sphinxext.py 2017-01-22 16:01:32.000000000 -0500 -+++ Pygments-2.2.0.patch/pygments/sphinxext.py 2018-03-19 12:57:52.099927570 -0400 -@@ -16,7 +16,7 @@ - - from docutils import nodes - from docutils.statemachine import ViewList --from sphinx.util.compat import Directive -+from docutils.parsers.rst import Directive - from sphinx.util.nodes import nested_parse_with_titles - - diff --git a/pep479.patch b/pep479.patch deleted file mode 100644 index 46fda97c87958839a716af244c2c3b3b0ad64036..0000000000000000000000000000000000000000 --- a/pep479.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -r 7941677dc77d pygments/lexers/lisp.py ---- a/pygments/lexers/lisp.py Mon Mar 13 19:16:03 2017 +0000 -+++ b/pygments/lexers/lisp.py Wed Jul 04 18:03:07 2018 +0200 -@@ -2327,13 +2327,13 @@ - token = Name.Function if token == Literal else token - yield index, token, value - -- raise StopIteration -+ return - - def _process_signature(self, tokens): - for index, token, value in tokens: - if token == Literal and value == '}': - yield index, Punctuation, value -- raise StopIteration -+ return - elif token in (Literal, Name.Function): - token = Name.Variable if value.istitle() else Keyword.Type - yield index, token, value -diff -r 7941677dc77d pygments/lexers/sql.py ---- a/pygments/lexers/sql.py Mon Mar 13 19:16:03 2017 +0000 -+++ b/pygments/lexers/sql.py Wed Jul 04 18:03:07 2018 +0200 -@@ -347,7 +347,10 @@ - # Emit the output lines - out_token = Generic.Output - while 1: -- line = next(lines) -+ try: -+ line = next(lines) -+ except StopIteration: -+ return - mprompt = re_prompt.match(line) - if mprompt is not None: - # push the line back to have it processed by the prompt diff --git a/python-pygments.spec b/python-pygments.spec index b228143ac62a93eacb2a0e6f751354c9dc66de5a..c887b9a3abdc32887bab835d065e4f42a3dc9fbd 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -15,28 +15,17 @@ need to prettify source code. Highlights are: \ Name: python-pygments Summary: Syntax highlighting engine written in Python -Version: 2.2.0 -Release: 15 +Version: 2.6.1 +Release: 1 License: BSD URL: http://pygments.org/ Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz -Patch0: import-directive.patch -Patch1: pep479.patch - BuildArch: noarch %description %{_description} -%package -n python2-pygments -BuildRequires: python2-devel >= 2.4, python2-setuptools -BuildRequires: python2-nose, python2-sphinx -Summary: Syntax highlighting engine written in Python -%{?python_provide:%python_provide python2-pygments} - -%description -n python2-pygments -%{_description} %package -n python3-pygments BuildRequires: python3-devel, python3-setuptools, python3-nose @@ -53,12 +42,9 @@ Summary: Syntax highlighting engine written in Python %build %{__sed} -i 's/\r//' LICENSE -%py2_build %py3_build %install -%py2_install -%{__python2} setup.py build_sphinx pushd doc install -d %{buildroot}%{_mandir}/man1 mv pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1 @@ -68,12 +54,8 @@ cp -r doc/docs doc/reST %py3_install %check -make test PYTHON=%{__python2} make test PYTHON=%{__python3} -%files -n python2-pygments -%license LICENSE -%{python2_sitelib}/* %files -n python3-pygments %license LICENSE @@ -85,5 +67,7 @@ make test PYTHON=%{__python3} %lang(en) %{_mandir}/man1/pygmentize.1* %changelog +* Fri Jul 24 2020 tianwei - 2.6.1-1 +- Package update to 2.6 * Fri Dec 6 2019 caomeng - 2.2.0-15 - Package init \ No newline at end of file