forked from pool/python-Sphinx
- Add python3.inv as a specific Source.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=150
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 4 10:17:24 UTC 2020 - Jan Zerebecki <jzerebecki@suse.com>
|
Mon May 4 10:17:24 UTC 2020 - Jan Zerebecki <jzerebecki@suse.com>
|
||||||
|
|
||||||
|
- Add python3.inv as a specific Source.
|
||||||
- update to version 3.0.3
|
- update to version 3.0.3
|
||||||
* Features added
|
* Features added
|
||||||
* C, parse array declarators with static, qualifiers, and VLA specification.
|
* C, parse array declarators with static, qualifiers, and VLA specification.
|
||||||
|
@@ -36,6 +36,7 @@ Group: Development/Languages/Python
|
|||||||
URL: http://sphinx-doc.org
|
URL: http://sphinx-doc.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
||||||
Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz.asc
|
Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz.asc
|
||||||
|
Source2: python3.inv
|
||||||
Source99: python-Sphinx-rpmlintrc
|
Source99: python-Sphinx-rpmlintrc
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -72,12 +73,12 @@ BuildRequires: %{python_module Sphinx = %{version}}
|
|||||||
BuildRequires: %{python_module Sphinx-latex = %{version}}
|
BuildRequires: %{python_module Sphinx-latex = %{version}}
|
||||||
BuildRequires: %{python_module doc}
|
BuildRequires: %{python_module doc}
|
||||||
BuildRequires: %{python_module html5lib}
|
BuildRequires: %{python_module html5lib}
|
||||||
|
BuildRequires: %{python_module mypy}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module sphinxcontrib-websupport}
|
BuildRequires: %{python_module sphinxcontrib-websupport}
|
||||||
|
BuildRequires: %{python_module testsuite}
|
||||||
|
BuildRequires: %{python_module typed-ast}
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
BuildRequires: python3-mypy
|
|
||||||
BuildRequires: python3-testsuite
|
|
||||||
BuildRequires: python3-typed-ast
|
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -233,15 +234,15 @@ mkdir build.doc
|
|||||||
# python3-doc 3.6.5-lp151.5.4 from Leap 15.1
|
# python3-doc 3.6.5-lp151.5.4 from Leap 15.1
|
||||||
# doesn't have one necessary entry in python3.inv
|
# doesn't have one necessary entry in python3.inv
|
||||||
# so use a copy from version 3.8.2-3.1 from Tumbleweed
|
# so use a copy from version 3.8.2-3.1 from Tumbleweed
|
||||||
cp %_sourcedir/python3.inv doc/python3.inv
|
cp %{SOURCE2} doc/python3.inv
|
||||||
%else
|
%else
|
||||||
cp /usr/share/doc/packages/python3/html/objects.inv doc/python3.inv
|
%python_expand cp %{_defaultdocdir}/%{$python_prefix}/html/objects.inv doc/%{$python_prefix}.inv
|
||||||
%endif
|
%endif
|
||||||
sed -i -e "s/\(intersphinx_mapping = ..python.: (.https:..docs.python.org.3.., \)None\()}\)/\1'python3.inv'\2/g" doc/conf.py
|
%python_expand sed -i -e "s/\(intersphinx_mapping = ..python.: (.https:..docs.python.org.3.., \)None\()}\)/\1'%{$python_prefix}.inv'\2/g" doc/conf.py
|
||||||
# fix file not found error
|
# fix file not found error
|
||||||
sed -i -e 's/.. include:: ...CODE_OF_CONDUCT//g' doc/code_of_conduct.rst
|
sed -i -e 's/.. include:: ...CODE_OF_CONDUCT//g' doc/code_of_conduct.rst
|
||||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
%python_exec setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||||
python3 setup.py build_sphinx -b man
|
%python_exec setup.py build_sphinx -b man
|
||||||
|
|
||||||
mv build/sphinx/{html,man} build.doc/
|
mv build/sphinx/{html,man} build.doc/
|
||||||
%endif
|
%endif
|
||||||
|
Reference in New Issue
Block a user