Patch the documentation generator config so it works offline

epel9
Michel Alexandre Salim 9 years ago
parent c955852d4f
commit 9d8c2c5b47

@ -0,0 +1,10 @@
--- hypothesis-2.0.0/docs/conf.py.offline 2016-01-11 00:47:23.000000000 +0700
+++ hypothesis-2.0.0/docs/conf.py 2016-02-14 10:50:58.790136352 +0700
@@ -33,7 +33,6 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
- 'sphinx.ext.intersphinx',
]
templates_path = ['_templates']

@ -13,6 +13,8 @@ Summary: %{sum}
License: MPLv2.0 License: MPLv2.0
URL: https://github.com/DRMacIver/hypothesis URL: https://github.com/DRMacIver/hypothesis
Source0: https://github.com/DRMacIver/hypothesis/archive/%{version}.tar.gz#/hypothesis-%{version}.tar.gz Source0: https://github.com/DRMacIver/hypothesis/archive/%{version}.tar.gz#/hypothesis-%{version}.tar.gz
# disable Sphinx extensions that require Internet access
Patch0: %{srcname}-2.0.0-offline.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
@ -87,7 +89,7 @@ flow.
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version} -p1
# remove shebang, mergedbs gets installed in sitelib # remove shebang, mergedbs gets installed in sitelib
%{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py %{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py
@ -104,7 +106,7 @@ rm -rf tests/nocover
%if 0%{?with_python3} %if 0%{?with_python3}
%py3_build %py3_build
#(cd docs && READTHEDOCS=True make man) #(cd docs && READTHEDOCS=True make man)
sphinx-build -W -b man -d docs/_build/doctrees docs docs/_build/man sphinx-build -b man -d docs/_build/doctrees docs docs/_build/man
%endif %endif

Loading…
Cancel
Save