forked from pool/python-Sphinx
- update to 1.7.6 - run Sphinx testsuite in package * LaTeX \sphinxupquote{} breaks in Russian * sphinx.testing uses deprecated pytest API; Node.get_marker(name) * crashed when recommonmark.AutoStrictify is enabled * latex: crashed with docutils package provided by Debian/Ubuntu * latex: a label for table is vanished if table does not have a caption * crashed with numbered toctree * C, render empty argument lists for macros. * C++, fix lookup of full template specializations with no template arguments. * C++, fix assertion on missing references in global scope when using intersphinx. * autodoc: crashed by Form Feed Character * autodoc: loses the first staticmethod parameter for old styled classes * quickstart: Typing Ctrl-U clears the whole of line * html: “relations” sidebar is not shown by default * latex: curly braces in index entries are not handled correctly * epub: Wrong internal href fragment links * apidoc: Interface of sphinx.apidoc:main() has changed * PDF builds of French projects have issues with XeTeX * napoleon raises RuntimeError with python 3.7 * sphinx-build: Interface of sphinx:main() has changed * sphinx-build: sphinx.cmd.build.main() refers sys.argv instead of given argument * autosummary: warning is emitted when the first line of docstring ends with literal notation * autosummary: warnings of autosummary indicates wrong location (refs: #5146) * autodoc: crashed on inspecting dict like object which does not support sorting * autodoc: Enum argument missing if it shares value with another * py domain: rtype field could not handle “None” as a type * LaTeX: indexing of terms containing @, !, or " fails OBS-URL: https://build.opensuse.org/request/show/624270 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=109
164 lines
5.2 KiB
RPMSpec
164 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package python-Sphinx-doc
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%if 0%{?suse_version} != 1315
|
|
%bcond_without latex
|
|
%else
|
|
%bcond_with latex
|
|
%endif
|
|
Name: python-Sphinx-doc
|
|
Version: 1.7.6
|
|
Release: 0
|
|
Summary: Documentation for python-Sphinx
|
|
License: BSD-2-Clause
|
|
Group: Documentation/Other
|
|
URL: http://sphinx-doc.org
|
|
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
|
Patch1: disable-test.patch
|
|
BuildRequires: %{python_module Sphinx = %version}
|
|
BuildRequires: %{python_module html5lib}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: ImageMagick
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-mypy
|
|
BuildRequires: python3-typed-ast
|
|
Recommends: %{name}-html = %{version}
|
|
BuildArch: noarch
|
|
%if %{with latex}
|
|
BuildRequires: python3-Sphinx-latex
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
sources). It was originally created for the Python documentation, and
|
|
supports Python project documentation well, but C/C++ is likewise
|
|
supported.
|
|
|
|
Sphinx uses reStructuredText as its markup language. Sphinx draws from
|
|
the parsing and translating suite, the Docutils.
|
|
|
|
This package contains the documentation for Sphinx.
|
|
|
|
%package man
|
|
Summary: Man files for python-Sphinx
|
|
Group: Documentation/Man
|
|
Requires: %{name}-man-common = %{version}
|
|
Requires: python-Sphinx = %{version}
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
|
|
%description man
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
sources).
|
|
|
|
This package contains the manual pages for the Sphinx executables.
|
|
|
|
%package -n %{name}-html
|
|
Summary: HTML Documentation for python-Sphinx
|
|
Group: Documentation/HTML
|
|
Provides: %{python_module Sphinx-doc-html = %{version}}
|
|
|
|
%description -n %{name}-html
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
sources).
|
|
|
|
This package contains the HTML documentation for Sphinx.
|
|
|
|
%package -n %{name}-man-common
|
|
Summary: Man files for python-Sphinx - python-independent versions
|
|
Group: Documentation/Man
|
|
Provides: %{python_module Sphinx-doc-man-common = %{version}}
|
|
|
|
%description -n %{name}-man-common
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
sources).
|
|
|
|
This package contains the Python version-independent manual pages for the
|
|
Sphinx executables.
|
|
|
|
%prep
|
|
%setup -q -n Sphinx-%{version}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
# build documentation
|
|
%{_python_use_flavor python3}
|
|
|
|
mkdir build.doc
|
|
|
|
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
|
python3 setup.py build_sphinx -b man
|
|
|
|
mv build/sphinx/{html,man} build.doc/
|
|
|
|
%install
|
|
install -d %{buildroot}%{_docdir}/python-Sphinx/
|
|
install -d %{buildroot}%{_mandir}/man1/
|
|
|
|
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
|
|
|
|
mv build.doc/man/sphinx-all.1 %{buildroot}%{_mandir}/man1/sphinx-all.1
|
|
mv build.doc/man/sphinx-apidoc.1 %{buildroot}%{_mandir}/man1/sphinx-apidoc.1
|
|
mv build.doc/man/sphinx-build.1 %{buildroot}%{_mandir}/man1/sphinx-build.1
|
|
mv build.doc/man/sphinx-quickstart.1 %{buildroot}%{_mandir}/man1/sphinx-quickstart.1
|
|
|
|
%python_clone %{buildroot}%{_mandir}/man1/sphinx-all.1
|
|
%python_clone %{buildroot}%{_mandir}/man1/sphinx-apidoc.1
|
|
%python_clone %{buildroot}%{_mandir}/man1/sphinx-build.1
|
|
%python_clone %{buildroot}%{_mandir}/man1/sphinx-quickstart.1
|
|
|
|
%check
|
|
export LANG="en_US.UTF-8"
|
|
%python_exec -m pytest tests -k "not linkcheck" -v
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc AUTHORS EXAMPLES
|
|
|
|
%files %{python_files man}
|
|
%license LICENSE
|
|
%doc AUTHORS
|
|
%{_mandir}/man1/sphinx-all-%{python_bin_suffix}.1%{?ext_man}
|
|
%{_mandir}/man1/sphinx-apidoc-%{python_bin_suffix}.1%{?ext_man}
|
|
%{_mandir}/man1/sphinx-build-%{python_bin_suffix}.1%{?ext_man}
|
|
%{_mandir}/man1/sphinx-quickstart-%{python_bin_suffix}.1%{?ext_man}
|
|
|
|
%files -n %{name}-html
|
|
%license LICENSE
|
|
%doc AUTHORS
|
|
%dir %{_docdir}/python-Sphinx/
|
|
%{_docdir}/python-Sphinx/html/
|
|
|
|
%files -n %{name}-man-common
|
|
%license LICENSE
|
|
%doc AUTHORS
|
|
%{_mandir}/man1/sphinx-all.1%{?ext_man}
|
|
%{_mandir}/man1/sphinx-apidoc.1%{?ext_man}
|
|
%{_mandir}/man1/sphinx-build.1%{?ext_man}
|
|
%{_mandir}/man1/sphinx-quickstart.1%{?ext_man}
|
|
|
|
%changelog
|