[packages/python-Cython] - updated to 0.29.21 - added sphinx patch (adjust to use sphinx.ext.imgmath instead of sphinx.ext.pn

qboosh qboosh at pld-linux.org
Sat Dec 12 17:29:07 CET 2020


commit 1ff52ece3a2fdac0f2032ed454c9c487c4c8627f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 12 17:29:37 2020 +0100

    - updated to 0.29.21
    - added sphinx patch (adjust to use sphinx.ext.imgmath instead of sphinx.ext.pngmath removed in Sphinx 1.8+)

 python-Cython-sphinx.patch | 11 +++++++++++
 python-Cython.spec         | 11 +++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/python-Cython.spec b/python-Cython.spec
index da9439e..c189c5b 100644
--- a/python-Cython.spec
+++ b/python-Cython.spec
@@ -10,13 +10,14 @@
 Summary:	Language for writing Python Extension Modules (Python 2.x version)
 Summary(pl.UTF-8):	Język służący do pisania modułów rozszerzających Pythona (wersja dla Pythona 2.x)
 Name:		python-%{module}
-Version:	0.29.14
+Version:	0.29.21
 Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/cython/
 Source0:	https://files.pythonhosted.org/packages/source/c/cython/%{module}-%{version}.tar.gz
-# Source0-md5:	6e2f139e30bb08d68366f9370d87964c
+# Source0-md5:	12c5e45af71dcc6dff28cdcbcbef6f39
+Patch0:		%{name}-sphinx.patch
 URL:		http://cython.org/
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
@@ -30,7 +31,7 @@ BuildRequires:	python3-devel >= 1:3.3
 BuildRequires:	python3-setuptools
 %endif
 BuildRequires:	rpm-pythonprov
-%{?with_apidocs:BuildRequires:	sphinx-pdg}
+%{?with_apidocs:BuildRequires:	sphinx-pdg-3 >= 1.8}
 Requires:	python-devel >= 1:2.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -95,6 +96,7 @@ Pakiet zawierający przykładowe programy napisane w języku Cython.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
@@ -109,7 +111,8 @@ Pakiet zawierający przykładowe programy napisane w języku Cython.
 %py3_build
 
 %if %{with tests}
-%{__python3} runtests.py
+%{__python3} runtests.py \
+	SPHINXBUILD=sphinx-build-3
 %endif
 %endif
 
diff --git a/python-Cython-sphinx.patch b/python-Cython-sphinx.patch
new file mode 100644
index 0000000..2e0b839
--- /dev/null
+++ b/python-Cython-sphinx.patch
@@ -0,0 +1,11 @@
+--- Cython-0.29.21/docs/conf.py.orig	2020-05-19 10:45:14.000000000 +0200
++++ Cython-0.29.21/docs/conf.py	2020-12-12 17:15:58.359720178 +0100
+@@ -41,7 +41,7 @@
+ extensions = [
+     'ipython_console_highlighting',
+     'cython_highlighting',
+-    'sphinx.ext.pngmath',
++    'sphinx.ext.imgmath',
+     'sphinx.ext.todo',
+     'sphinx.ext.intersphinx',
+     'sphinx.ext.autodoc'
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-Cython.git/commitdiff/1ff52ece3a2fdac0f2032ed454c9c487c4c8627f



More information about the pld-cvs-commit mailing list