update to 3.1.2
This commit is contained in:
parent
a2d98798a1
commit
2bd7e5eb48
Binary file not shown.
BIN
Sphinx-3.1.2.tar.gz
Normal file
BIN
Sphinx-3.1.2.tar.gz
Normal file
Binary file not shown.
@ -1,30 +1,44 @@
|
|||||||
Name: python-sphinx
|
Name: python-sphinx
|
||||||
Summary: Python documentation generator
|
Version: 3.1.2
|
||||||
Version: 1.7.6
|
Release: 1
|
||||||
Release: 6
|
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
Summary: Python documentation generator
|
||||||
License: BSD and Public Domain and Python and (MIT or GPLv2)
|
License: BSD and Public Domain and Python and (MIT or GPLv2)
|
||||||
URL: http://sphinx-doc.org/
|
URL: http://sphinx-doc.org/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
||||||
Source1: default-sphinx-command.in
|
Patch1: sphinx-test_theming.diff
|
||||||
Patch0001: xfail-test_latex_remote_images.patch
|
|
||||||
Patch0002: sphinx-test_theming.diff
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel >= 2.4 python2-babel python2-setuptools python2-docutils python2-jinja2 python2-pygments >= 2.0
|
|
||||||
BuildRequires: python2-six python2-sphinx_rtd_theme python2-sphinx-theme-alabaster python2-imagesize python2-requests
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python2-packaging python2-typing dos2unix python2-sphinxcontrib-websupport python2-html5lib python2-whoosh
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python2-nose python2-pytest python2-pytest-cov gettext texinfo graphviz python2-sqlalchemy texlive-dvipng
|
BuildRequires: python3-babel
|
||||||
BuildRequires: python2-mock python2-html5lib python2-whoosh python2-snowballstemmer python2-enum34 texlive-dvisvgm texlive-ucs
|
BuildRequires: python3-docutils
|
||||||
BuildRequires: python2-snowballstemmer python2-enum34 texlive-collection-fontsrecommended texlive-collection-latex
|
BuildRequires: python3-imagesize
|
||||||
BuildRequires: tex(cmap.sty) tex(ecrm1000.tfm) tex(footnote.sty) tex(framed.sty) tex(multirow.sty) tex(parskip.sty)
|
BuildRequires: python3-jinja2
|
||||||
BuildRequires: tex(threeparttable.sty) tex(upquote.sty) tex(wrapfig.sty) tex(capt-of.sty) tex(needspace.sty) tex(eqparbox.sty)
|
BuildRequires: python3-packaging
|
||||||
BuildRequires: tex(amsmath.sty) tex(amsthm.sty) tex(amssymb.sty) tex(amsfonts.sty) tex(bm.sty) tex(palatino.sty) tex(multirow.sty)
|
BuildRequires: python3-pygments
|
||||||
BuildRequires: tex(eqparbox.sty) tex(atbegshi.sty) tex(anyfontsize.sty) tex(luatex85.sty) tex(fncychap.sty)
|
BuildRequires: python3-requests
|
||||||
BuildRequires: tex(tabulary.sty) tex(polyglossia.sty) tex(ctablestack.sty) tex(eu1enc.def) tex(titlesec.sty)
|
BuildRequires: python3-sphinxcontrib-applehelp
|
||||||
BuildRequires: python3-devel python3-babel python3-setuptools python3-docutils python3-jinja2 python3-pygments
|
BuildRequires: python3-sphinxcontrib-devhelp
|
||||||
BuildRequires: python3-six python3-sphinx_rtd_theme python3-sphinx-theme-alabaster python3-packaging python3-imagesize
|
BuildRequires: python3-sphinxcontrib-htmlhelp
|
||||||
BuildRequires: python3-requests python3-sphinxcontrib-websupport python3-nose python3-pytest python3-pytest-cov
|
BuildRequires: python3-sphinxcontrib-jsmath
|
||||||
BuildRequires: python3-sqlalchemy python3-mock python3-html5lib python3-whoosh python3-snowballstemmer
|
BuildRequires: python3-sphinxcontrib-qthelp
|
||||||
|
BuildRequires: python3-sphinxcontrib-serializinghtml
|
||||||
|
BuildRequires: python3-sphinx-theme-alabaster
|
||||||
|
|
||||||
|
BuildRequires: dos2unix
|
||||||
|
|
||||||
|
BuildRequires: python3-test
|
||||||
|
BuildRequires: python3-html5lib
|
||||||
|
BuildRequires: python3-mock
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-snowballstemmer
|
||||||
|
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: graphviz
|
||||||
|
BuildRequires: texinfo
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
Sphinx is a tool that makes it easy to create intelligent and
|
||||||
@ -38,53 +52,6 @@ Sphinx uses reStructuredText as its markup language, and many of its
|
|||||||
strengths come from the power and straightforwardness of
|
strengths come from the power and straightforwardness of
|
||||||
reStructuredText and its parsing and translating suite, the Docutils.
|
reStructuredText and its parsing and translating suite, the Docutils.
|
||||||
|
|
||||||
Although it is still under constant development, the following
|
|
||||||
features are already present, work fine and can be seen "in action" in
|
|
||||||
the Python docs:
|
|
||||||
|
|
||||||
* Output formats: HTML (including Windows HTML Help) and LaTeX,
|
|
||||||
for printable PDF versions
|
|
||||||
* Extensive cross-references: semantic markup and automatic links
|
|
||||||
for functions, classes, glossary terms and similar pieces of
|
|
||||||
information
|
|
||||||
* Hierarchical structure: easy definition of a document tree, with
|
|
||||||
automatic links to siblings, parents and children
|
|
||||||
* Automatic indices: general index as well as a module index
|
|
||||||
* Code handling: automatic highlighting using the Pygments highlighter
|
|
||||||
* Various extensions are available, e.g. for automatic testing of
|
|
||||||
snippets and inclusion of appropriately formatted docstrings.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-sphinx
|
|
||||||
Summary: Python documentation generator
|
|
||||||
|
|
||||||
Requires: python-sphinx-locale = %{?epoch}:%{version}-%{release}
|
|
||||||
Requires: python2-babel python2-docutils python2-jinja2 python2-pygments python2-mock
|
|
||||||
Requires: python2-snowballstemmer python2-sphinx_rtd_theme python2-sphinx-theme-alabaster
|
|
||||||
Requires: python2-six python2-imagesize python2-requests python2-packaging python2-typing
|
|
||||||
Requires: python2-sphinxcontrib-websupport environment(modules)
|
|
||||||
Requires(pre): /usr/sbin/alternatives
|
|
||||||
Recommends: graphviz ImageMagick
|
|
||||||
|
|
||||||
Obsoletes: python-sphinx <= 1.2.3 python-sphinxcontrib-napoleon < 0.5 python2-Sphinx <= 1.3.1-4
|
|
||||||
Provides: python-sphinxcontrib-napoleon = %{?epoch}:%{version}-%{release}
|
|
||||||
Provides: python2-Sphinx = %{?epoch}:%{version}-%{release}
|
|
||||||
Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|
||||||
Conflicts: python3-sphinx < %{?epoch}:%{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-sphinx}
|
|
||||||
|
|
||||||
%description -n python2-sphinx
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
Sphinx uses reStructuredText as its markup language, and many of its
|
|
||||||
strengths come from the power and straightforwardness of
|
|
||||||
reStructuredText and its parsing and translating suite, the Docutils.
|
|
||||||
|
|
||||||
Although it is still under constant development, the following
|
Although it is still under constant development, the following
|
||||||
features are already present, work fine and can be seen "in action" in
|
features are already present, work fine and can be seen "in action" in
|
||||||
the Python docs:
|
the Python docs:
|
||||||
@ -118,6 +85,7 @@ Provides: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
|||||||
Conflicts: python2-Sphinx < %{?epoch}:%{version}-%{release}
|
Conflicts: python2-Sphinx < %{?epoch}:%{version}-%{release}
|
||||||
%{?python_provide:%python_provide python3-sphinx}
|
%{?python_provide:%python_provide python3-sphinx}
|
||||||
|
|
||||||
|
|
||||||
%description -n python3-sphinx
|
%description -n python3-sphinx
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
Sphinx is a tool that makes it easy to create intelligent and
|
||||||
beautiful documentation for Python projects (or other documents
|
beautiful documentation for Python projects (or other documents
|
||||||
@ -146,85 +114,73 @@ the Python docs:
|
|||||||
* Various extensions are available, e.g. for automatic testing of
|
* Various extensions are available, e.g. for automatic testing of
|
||||||
snippets and inclusion of appropriately formatted docstrings.
|
snippets and inclusion of appropriately formatted docstrings.
|
||||||
|
|
||||||
%package help
|
|
||||||
|
%package doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
Requires: python(Sphinx) = %{?epoch}:%{version}-%{release}
|
License: BSD
|
||||||
Provides: python-sphinx-doc python-sphinx-latex
|
Recommends: python3-sphinx = %{epoch}:%{version}-%{release}
|
||||||
Obsoletes: python-sphinx-doc < %{?epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: python-sphinx-latex < %{?epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description help
|
%description doc
|
||||||
This package contains help documentation in reST and HTML formats.
|
Sphinx is a tool that makes it easy to create intelligent and
|
||||||
|
beautiful documentation for Python projects (or other documents
|
||||||
|
consisting of multiple reStructuredText sources), written by Georg
|
||||||
|
Brandl. It was originally created to translate the new Python
|
||||||
|
documentation, but has now been cleaned up in the hope that it will be
|
||||||
|
useful to many other projects.
|
||||||
|
|
||||||
%package locale
|
This package contains documentation in reST and HTML formats.
|
||||||
Summary: Locale files for python-sphinx
|
|
||||||
|
|
||||||
%description locale
|
|
||||||
This package contains locale files for Sphinx.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n Sphinx-%{version} -p1
|
%autosetup -n Sphinx-%{version} -p1
|
||||||
|
|
||||||
dos2unix -k ./sphinx/themes/basic/static/jquery.js
|
dos2unix -k ./sphinx/themes/basic/static/jquery.js
|
||||||
rm tests/test_ext_imgconverter.py
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
export PYTHONPATH=$PWD
|
export PYTHONPATH=$PWD
|
||||||
cd doc
|
pushd doc
|
||||||
export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py"
|
export SPHINXBUILD="%{__python3} ../sphinx/cmd/build.py"
|
||||||
|
|
||||||
make html SPHINXBUILD="$SPHINXBUILD"
|
make html SPHINXBUILD="$SPHINXBUILD"
|
||||||
make man SPHINXBUILD="$SPHINXBUILD"
|
make man SPHINXBUILD="$SPHINXBUILD"
|
||||||
rm -rf _build/html/.buildinfo
|
rm -rf _build/html/.buildinfo
|
||||||
mv _build/html ..
|
mv _build/html ..
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}/*
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
# For backwards compatibility. Remove around Fedora 33 (with care)
|
||||||
install -d %{buildroot}%{_libexecdir}/python3-sphinx
|
install -d %{buildroot}%{_libexecdir}/python3-sphinx
|
||||||
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
||||||
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
|
ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
|
||||||
ln -s $i-%{python3_version} %{buildroot}%{_bindir}/$i-3
|
ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-3
|
||||||
ln -s %{_bindir}/$i-3 %{buildroot}%{_libexecdir}/python3-sphinx/$i
|
ln -s %{_bindir}/$i %{buildroot}%{_libexecdir}/python3-sphinx/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
%py2_install
|
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
|
||||||
install -d %{buildroot}%{_libexecdir}/python2-sphinx
|
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx
|
||||||
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
|
||||||
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python2_version}
|
|
||||||
ln -s $i-%{python2_version} %{buildroot}%{_bindir}/$i-2
|
|
||||||
ln -s %{_bindir}/$i-2 %{buildroot}%{_libexecdir}/python2-sphinx/$i
|
|
||||||
done
|
|
||||||
|
|
||||||
pushd doc
|
pushd doc
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
for f in _build/man/sphinx-*.1;
|
for f in _build/man/sphinx-*.1;
|
||||||
do
|
do
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
|
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python2_version}.1|")
|
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f | sed -e "s|.1$|-%{python3_version}.1|")
|
|
||||||
done
|
done
|
||||||
|
|
||||||
find %{buildroot}%{python3_sitelib}/sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -exec rm -rf '{}' \;
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
rm -f %{buildroot}%{python2_sitelib}/sphinx/locale/.DS_Store
|
|
||||||
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
|
|
||||||
rm -rf %{buildroot}%{python2_sitelib}/sphinx/locale/.tx
|
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx
|
|
||||||
rm -rf doc/_build
|
rm -rf doc/_build
|
||||||
sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile
|
sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile
|
||||||
mv doc reST
|
mv doc reST
|
||||||
|
rm reST/make.bat
|
||||||
|
|
||||||
pushd %{buildroot}%{python2_sitelib}
|
pushd %{buildroot}%{python3_sitelib}
|
||||||
|
|
||||||
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
||||||
do
|
do
|
||||||
|
test $lang == __pycache__ && continue
|
||||||
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
||||||
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
||||||
mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \
|
mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \
|
||||||
@ -235,12 +191,7 @@ do
|
|||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
install -d %{buildroot}%{_modulesdir}/python-sphinx
|
mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib
|
||||||
sed 's/@PYTHONVER@/3/' < %{SOURCE1} > %{buildroot}%{_modulesdir}/python-sphinx/.version
|
|
||||||
|
|
||||||
for filename in sphinx-{build,apidoc,autogen,quickstart} ; do
|
|
||||||
ln -s %{_libexecdir}/python3-sphinx/$filename %{buildroot}%{_bindir}/$filename
|
|
||||||
done
|
|
||||||
|
|
||||||
%find_lang sphinx
|
%find_lang sphinx
|
||||||
|
|
||||||
@ -249,48 +200,36 @@ done
|
|||||||
>> sphinx.lang
|
>> sphinx.lang
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%if %{with check}
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
||||||
export PYTHONPATH=$PWD
|
export PATH=%{buildroot}%{_bindir}:$PATH
|
||||||
rm tests/test_build_linkcheck.py
|
|
||||||
LANG=en_US.UTF-8 %{__python2} -m pytest -v --ignore=tests/test_api_translator.py
|
|
||||||
cd %{py3dir}
|
|
||||||
rm tests/test_build_linkcheck.py
|
|
||||||
LANG=en_US.UTF-8 PYTHON=python3 make test
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files locale -f sphinx.lang
|
|
||||||
|
%files -n python3-sphinx -f sphinx.lang
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%doc AUTHORS CHANGES EXAMPLES README.rst
|
||||||
|
%{_bindir}/sphinx-*
|
||||||
|
%{python3_sitelib}/sphinx/
|
||||||
|
%dir %{python3_sitelib}/sphinxcontrib/
|
||||||
|
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
|
||||||
|
%{_libexecdir}/python3-sphinx/
|
||||||
%dir %{_datadir}/sphinx/
|
%dir %{_datadir}/sphinx/
|
||||||
%dir %{_datadir}/sphinx/locale
|
%dir %{_datadir}/sphinx/locale
|
||||||
%dir %{_datadir}/sphinx/locale/*
|
%dir %{_datadir}/sphinx/locale/*
|
||||||
|
%{_mandir}/man1/sphinx-*
|
||||||
|
|
||||||
%files -n python2-sphinx
|
|
||||||
|
%files doc
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS CHANGES EXAMPLES README.rst
|
|
||||||
%{_bindir}/sphinx-*-2*
|
|
||||||
%{python2_sitelib}/sphinx/
|
|
||||||
%{python2_sitelib}/Sphinx-%{version}-py%{python2_version}.egg-info/
|
|
||||||
%{_libexecdir}/python2-sphinx/
|
|
||||||
|
|
||||||
%files -n python3-sphinx
|
|
||||||
%license LICENSE
|
|
||||||
%doc AUTHORS CHANGES EXAMPLES README.rst
|
|
||||||
%{_bindir}/sphinx-*-3*
|
|
||||||
%{_bindir}/sphinx-build
|
|
||||||
%{_bindir}/sphinx-apidoc
|
|
||||||
%{_bindir}/sphinx-autogen
|
|
||||||
%{_bindir}/sphinx-quickstart
|
|
||||||
%{python3_sitelib}/sphinx/
|
|
||||||
%{python3_sitelib}/Sphinx-%{version}-py%{python3_version}.egg-info/
|
|
||||||
%{_libexecdir}/python3-sphinx/
|
|
||||||
%{_modulesdir}/python-sphinx/.version
|
|
||||||
|
|
||||||
%files help
|
|
||||||
%doc html reST
|
%doc html reST
|
||||||
%{_mandir}/man1/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 31 2020 tianwei <tianwei12@huawei.com> - 3.1.2-1
|
||||||
|
- Package update to 3.1.2
|
||||||
|
|
||||||
* Thu Feb 20 2020 Lijin Yang <yanglijin@huawei.com> - 1:1.7.6-6
|
* Thu Feb 20 2020 Lijin Yang <yanglijin@huawei.com> - 1:1.7.6-6
|
||||||
- delete useless files
|
- delete useless files
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
|
|
||||||
index 55f48cd..78ccecd 100644
|
|
||||||
--- a/tests/test_build_latex.py
|
|
||||||
+++ b/tests/test_build_latex.py
|
|
||||||
@@ -1009,7 +1009,7 @@ def test_latex_raw_directive(app, status, warning):
|
|
||||||
assert 'HTML: abc ghi' in result
|
|
||||||
assert 'LaTeX: abc def ghi' in result
|
|
||||||
|
|
||||||
-
|
|
||||||
+@pytest.mark.xfail(reason="this test requires internet connection")
|
|
||||||
@pytest.mark.sphinx('latex', testroot='images')
|
|
||||||
def test_latex_remote_images(app, status, warning):
|
|
||||||
app.builder.build_all()
|
|
||||||
Loading…
x
Reference in New Issue
Block a user