diff --git a/python-sure.spec b/python-sure.spec index 55fed5e..b291bf5 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -40,7 +40,6 @@ BuildRequires: make BuildRequires: python3dist(sphinx) # development.txt: sphinx-rtd-theme==0.4.3 BuildRequires: python3dist(sphinx-rtd-theme) -BuildRequires: python3-docs BuildRequires: python3-sphinx-latex BuildRequires: latexmk %endif @@ -62,23 +61,16 @@ Summary: %{summary} %package doc Summary: Documentation for Sure -Requires: python3-docs - %description doc %{common_description} %prep %autosetup -p1 -n sure-%{version} -# Use local inventories in intersphinx mappings. -# -# Currently, python-redis does not package the Sphinx documentation, so we -# remove that mapping: -# 'redis': ('https://redis-py.readthedocs.io/en/latest/', None) -sed -r -i \ - -e 's|https://docs.python.org/3?|/%{_docdir}/python3-docs/html|' \ - -e '/redis.*https.*readthedocs/d' \ - docs/source/conf.py +# Drop intersphinx mappings, since we can’t download remote inventories and +# can’t easily produce working hyperlinks from inventories in local +# documentation packages. +echo 'intersphinx_mapping.clear()' >> docs/conf.py cp -p '%{SOURCE1}' .