Add patch to fix sphinx build

This commit is contained in:
Orion Poplawski 2016-12-23 10:12:23 -07:00
parent ca076d7f5b
commit f29f928f1a
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -up networkx-networkx-1.11/doc/source/conf.py.sphinx networkx-networkx-1.11/doc/source/conf.py
--- networkx-networkx-1.11/doc/source/conf.py.sphinx 2016-01-30 10:25:44.000000000 -0700
+++ networkx-networkx-1.11/doc/source/conf.py 2016-12-23 09:54:55.280925006 -0700
@@ -74,7 +74,6 @@ extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
- 'sphinx.ext.pngmath',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
#'sphinxcontrib.bibtex',

View File

@ -17,6 +17,9 @@ Source0: https://github.com/networkx/networkx/archive/%{srcname}-%{versio
Patch0: %{srcname}-optional-modules.patch
Patch1: %{srcname}-nose1.0.patch
Patch2: %{srcname}-skip-scipy-0.8-tests.patch
# Fix sphinx build error
# https://github.com/networkx/networkx/issues/2340
Patch3: python-networkx-sphinx.patch
BuildArch: noarch
%description
@ -200,6 +203,7 @@ Documentation for networkx
%patch1 -p1
%patch2 -p1
%endif
%patch3 -p1 -b .sphinx
# Fix permissions
find examples -type f -perm /0111 -exec chmod a-x {} +
@ -313,6 +317,9 @@ PYTHONPATH=$PWD/site-packages python -c "import networkx; networkx.test()"
%changelog
* Fri Dec 23 2016 Orion Poplawski <orion@cora.nwra.com> - 1.15-5
- Add patch to fix sphinx build
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.11-5
- Rebuild for Python 3.6