2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
2021-06-02 15:53:21 +02:00
|
|
|
|
# spec file
|
2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
2023-01-04 07:27:36 +01:00
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
2011-07-04 12:44:36 +02:00
|
|
|
|
|
2018-12-07 21:22:04 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-03 13:34:40 +02:00
|
|
|
|
#
|
|
|
|
|
|
2011-07-04 12:44:36 +02:00
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define psuffix -test
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%define psuffix %{nil}
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
2023-04-21 17:02:44 +02:00
|
|
|
|
%{?sle15_python_module_pythons}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Name: python-Sphinx%{psuffix}
|
2023-09-14 12:17:23 +02:00
|
|
|
|
Version: 7.2.6
|
2011-09-22 12:59:46 +02:00
|
|
|
|
Release: 0
|
2011-07-03 13:34:40 +02:00
|
|
|
|
Summary: Python documentation generator
|
2011-09-22 12:59:46 +02:00
|
|
|
|
License: BSD-2-Clause
|
2011-07-03 13:34:40 +02:00
|
|
|
|
Group: Development/Languages/Python
|
2018-05-23 14:18:27 +02:00
|
|
|
|
URL: http://sphinx-doc.org
|
Accepting request 1101202 from home:marxin:branches:devel:languages:python
- Update to 7.1.1:
* #11514: Fix ``SOURCE_DATE_EPOCH`` in multi-line copyright footer.
Patch by Bénédikt Tran.
- Update to 7.1.0:
* Releases are no longer signed, given the `change in PyPI policy`_.
* #11412: Emit warnings on using a deprecated Python-specific index entry type
(namely, ``module``, ``keyword``, ``operator``, ``object``, ``exception``,
``statement``, and ``builtin``) in the :rst:dir:`index` directive, and
set the removal version to Sphinx 9. Patch by Adam Turner.
* #11415: Add a checksum to JavaScript and CSS asset URIs included within
generated HTML, using the CRC32 algorithm.
* :meth:`~sphinx.application.Sphinx.require_sphinx` now allows the version
requirement to be specified as ``(major, minor)``.
* #11011: Allow configuring a line-length limit for object signatures, via
:confval:`maximum_signature_line_length` and the domain-specific variants.
If the length of the signature (in characters) is greater than the configured
limit, each parameter in the signature will be split to its own logical line.
This behaviour may also be controlled by options on object description
directives, for example :rst:dir:`py:function:single-line-parameter-list`.
Patch by Thomas Louf, Adam Turner, and Jean-François B.
* #10983: Support for multiline copyright statements in the footer block.
Patch by Stefanie Molin
* ``sphinx.util.display.status_iterator`` now clears the current line
with ANSI control codes, rather than overprinting with space characters.
* #11431: linkcheck: Treat SSL failures as broken links.
Patch by Bénédikt Tran
* #11157: Keep the ``translated`` attribute on translated nodes.
* #11451: Improve the traceback displayed when using :option:`sphinx-build -T`
in parallel builds. Patch by Bénédikt Tran
* #11324: linkcheck: Use session-basd HTTP requests.
OBS-URL: https://build.opensuse.org/request/show/1101202
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=245
2023-07-29 11:12:43 +02:00
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinx/sphinx-%{version}.tar.gz
|
Accepting request 991054 from home:marxin:branches:devel:languages:python
- Update to version 5.1.0
* #10656: Support `Docutils 0.19`_. Patch by Adam Turner.
* #10467: Deprecated ``sphinx.util.stemmer`` in favour of ``snowballstemmer``.
Patch by Adam Turner.
* #9856: Deprecated ``sphinx.ext.napoleon.iterators``.
* #10444: html theme: Allow specifying multiple CSS files through the ``stylesheet``
setting in ``theme.conf`` or by setting ``html_style`` to an iterable of strings.
* #10366: std domain: Add support for emphasising placeholders in :rst:dir:`option`
directives through a new :confval:`option_emphasise_placeholders` configuration
option.
* #10439: std domain: Use the repr of some variables when displaying warnings,
making whitespace issues easier to identify.
* #10571: quickstart: Reduce content in the generated ``conf.py`` file. Patch by
Pradyun Gedam.
* #10648: LaTeX: CSS-named-alike additional :ref:`'sphinxsetup' <latexsphinxsetup>`
keys allow to configure four separate border-widths, four paddings, four
corner radii, a shadow (possibly inset), colours for border, background, shadow
for each of the code-block, topic, attention, caution, danger, error and warning
directives.
* #10655: LaTeX: Explain non-standard encoding in LatinRules.xdy
* #10599: HTML Theme: Wrap consecutive footnotes in an ``<aside>`` element when
using Docutils 0.18 or later, to allow for easier styling. This matches the
behaviour introduced in Docutils 0.19. Patch by Adam Turner.
* #10518: config: Add ``include_patterns`` as the opposite of ``exclude_patterns``.
Patch by Adam Turner.
* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+
* #10596: Build failure if Docutils version is 0.18 (not 0.18.1) due
to missing ``Node.findall()``
* #10506: LaTeX: build error if highlighting inline code role in figure caption
(refs: #10251)
OBS-URL: https://build.opensuse.org/request/show/991054
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=214
2022-07-25 17:58:13 +02:00
|
|
|
|
# Provide intersphinx inventory offline, run update-intersphinx.sh
|
|
|
|
|
# https://docs.python.org/3/objects.inv
|
2022-01-19 17:50:57 +01:00
|
|
|
|
Source2: python3.inv
|
Accepting request 991054 from home:marxin:branches:devel:languages:python
- Update to version 5.1.0
* #10656: Support `Docutils 0.19`_. Patch by Adam Turner.
* #10467: Deprecated ``sphinx.util.stemmer`` in favour of ``snowballstemmer``.
Patch by Adam Turner.
* #9856: Deprecated ``sphinx.ext.napoleon.iterators``.
* #10444: html theme: Allow specifying multiple CSS files through the ``stylesheet``
setting in ``theme.conf`` or by setting ``html_style`` to an iterable of strings.
* #10366: std domain: Add support for emphasising placeholders in :rst:dir:`option`
directives through a new :confval:`option_emphasise_placeholders` configuration
option.
* #10439: std domain: Use the repr of some variables when displaying warnings,
making whitespace issues easier to identify.
* #10571: quickstart: Reduce content in the generated ``conf.py`` file. Patch by
Pradyun Gedam.
* #10648: LaTeX: CSS-named-alike additional :ref:`'sphinxsetup' <latexsphinxsetup>`
keys allow to configure four separate border-widths, four paddings, four
corner radii, a shadow (possibly inset), colours for border, background, shadow
for each of the code-block, topic, attention, caution, danger, error and warning
directives.
* #10655: LaTeX: Explain non-standard encoding in LatinRules.xdy
* #10599: HTML Theme: Wrap consecutive footnotes in an ``<aside>`` element when
using Docutils 0.18 or later, to allow for easier styling. This matches the
behaviour introduced in Docutils 0.19. Patch by Adam Turner.
* #10518: config: Add ``include_patterns`` as the opposite of ``exclude_patterns``.
Patch by Adam Turner.
* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+
* #10596: Build failure if Docutils version is 0.18 (not 0.18.1) due
to missing ``Node.findall()``
* #10506: LaTeX: build error if highlighting inline code role in figure caption
(refs: #10251)
OBS-URL: https://build.opensuse.org/request/show/991054
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=214
2022-07-25 17:58:13 +02:00
|
|
|
|
# https://requests.readthedocs.io/en/stable/objects.inv
|
2022-01-19 17:50:57 +01:00
|
|
|
|
Source3: requests.inv
|
Accepting request 991054 from home:marxin:branches:devel:languages:python
- Update to version 5.1.0
* #10656: Support `Docutils 0.19`_. Patch by Adam Turner.
* #10467: Deprecated ``sphinx.util.stemmer`` in favour of ``snowballstemmer``.
Patch by Adam Turner.
* #9856: Deprecated ``sphinx.ext.napoleon.iterators``.
* #10444: html theme: Allow specifying multiple CSS files through the ``stylesheet``
setting in ``theme.conf`` or by setting ``html_style`` to an iterable of strings.
* #10366: std domain: Add support for emphasising placeholders in :rst:dir:`option`
directives through a new :confval:`option_emphasise_placeholders` configuration
option.
* #10439: std domain: Use the repr of some variables when displaying warnings,
making whitespace issues easier to identify.
* #10571: quickstart: Reduce content in the generated ``conf.py`` file. Patch by
Pradyun Gedam.
* #10648: LaTeX: CSS-named-alike additional :ref:`'sphinxsetup' <latexsphinxsetup>`
keys allow to configure four separate border-widths, four paddings, four
corner radii, a shadow (possibly inset), colours for border, background, shadow
for each of the code-block, topic, attention, caution, danger, error and warning
directives.
* #10655: LaTeX: Explain non-standard encoding in LatinRules.xdy
* #10599: HTML Theme: Wrap consecutive footnotes in an ``<aside>`` element when
using Docutils 0.18 or later, to allow for easier styling. This matches the
behaviour introduced in Docutils 0.19. Patch by Adam Turner.
* #10518: config: Add ``include_patterns`` as the opposite of ``exclude_patterns``.
Patch by Adam Turner.
* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+
* #10596: Build failure if Docutils version is 0.18 (not 0.18.1) due
to missing ``Node.findall()``
* #10506: LaTeX: build error if highlighting inline code role in figure caption
(refs: #10251)
OBS-URL: https://build.opensuse.org/request/show/991054
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=214
2022-07-25 17:58:13 +02:00
|
|
|
|
# https://docs.readthedocs.io/en/stable/objects.inv
|
2022-01-19 17:50:57 +01:00
|
|
|
|
Source4: readthedocs.inv
|
Accepting request 991054 from home:marxin:branches:devel:languages:python
- Update to version 5.1.0
* #10656: Support `Docutils 0.19`_. Patch by Adam Turner.
* #10467: Deprecated ``sphinx.util.stemmer`` in favour of ``snowballstemmer``.
Patch by Adam Turner.
* #9856: Deprecated ``sphinx.ext.napoleon.iterators``.
* #10444: html theme: Allow specifying multiple CSS files through the ``stylesheet``
setting in ``theme.conf`` or by setting ``html_style`` to an iterable of strings.
* #10366: std domain: Add support for emphasising placeholders in :rst:dir:`option`
directives through a new :confval:`option_emphasise_placeholders` configuration
option.
* #10439: std domain: Use the repr of some variables when displaying warnings,
making whitespace issues easier to identify.
* #10571: quickstart: Reduce content in the generated ``conf.py`` file. Patch by
Pradyun Gedam.
* #10648: LaTeX: CSS-named-alike additional :ref:`'sphinxsetup' <latexsphinxsetup>`
keys allow to configure four separate border-widths, four paddings, four
corner radii, a shadow (possibly inset), colours for border, background, shadow
for each of the code-block, topic, attention, caution, danger, error and warning
directives.
* #10655: LaTeX: Explain non-standard encoding in LatinRules.xdy
* #10599: HTML Theme: Wrap consecutive footnotes in an ``<aside>`` element when
using Docutils 0.18 or later, to allow for easier styling. This matches the
behaviour introduced in Docutils 0.19. Patch by Adam Turner.
* #10518: config: Add ``include_patterns`` as the opposite of ``exclude_patterns``.
Patch by Adam Turner.
* #10594: HTML Theme: field term colons are doubled if using Docutils 0.18+
* #10596: Build failure if Docutils version is 0.18 (not 0.18.1) due
to missing ``Node.findall()``
* #10506: LaTeX: build error if highlighting inline code role in figure caption
(refs: #10251)
OBS-URL: https://build.opensuse.org/request/show/991054
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=214
2022-07-25 17:58:13 +02:00
|
|
|
|
Source5: update-intersphinx.sh
|
2022-07-19 20:20:24 +02:00
|
|
|
|
Source99: python-Sphinx.keyring
|
2018-07-20 14:46:04 +02:00
|
|
|
|
BuildRequires: %{python_module base}
|
2022-10-03 14:33:53 +02:00
|
|
|
|
BuildRequires: %{python_module flit-core}
|
2022-09-28 18:52:39 +02:00
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-24 22:54:10 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-28 18:52:39 +02:00
|
|
|
|
BuildRequires: python3-pip
|
2018-05-23 14:18:27 +02:00
|
|
|
|
# workaround for suboptimal CentOS-7 project config
|
|
|
|
|
#!BuildIgnore: texinfo
|
2017-04-24 22:54:10 +02:00
|
|
|
|
Requires: python-Babel >= 1.3
|
2013-11-06 12:47:17 +01:00
|
|
|
|
Requires: python-Jinja2 >= 2.3
|
2023-08-23 14:29:29 +02:00
|
|
|
|
Requires: python-Pygments >= 2.14
|
2017-04-24 22:54:10 +02:00
|
|
|
|
Requires: python-alabaster >= 0.7
|
2021-04-16 10:05:51 +02:00
|
|
|
|
Requires: python-docutils >= 0.12
|
2017-02-16 12:48:07 +01:00
|
|
|
|
Requires: python-imagesize
|
2022-01-20 17:47:35 +01:00
|
|
|
|
Requires: python-packaging
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python-requests >= 2.5.0
|
2017-02-16 12:48:07 +01:00
|
|
|
|
Requires: python-snowballstemmer >= 1.1
|
2015-04-13 15:33:30 +02:00
|
|
|
|
Requires: python-sphinx_rtd_theme
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python-sphinxcontrib-applehelp
|
|
|
|
|
Requires: python-sphinxcontrib-devhelp
|
2021-07-17 15:26:19 +02:00
|
|
|
|
Requires: python-sphinxcontrib-htmlhelp >= 2.0.0
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python-sphinxcontrib-jsmath
|
2021-11-12 17:31:03 +01:00
|
|
|
|
Requires: python-sphinxcontrib-qthelp >= 1.0.2
|
2023-08-30 13:49:00 +02:00
|
|
|
|
Requires: python-sphinxcontrib-serializinghtml >= 1.1.9
|
2017-06-30 09:00:58 +02:00
|
|
|
|
Requires: python-sphinxcontrib-websupport
|
2018-05-23 14:18:27 +02:00
|
|
|
|
Requires(post): update-alternatives
|
2021-04-06 03:33:36 +02:00
|
|
|
|
Requires(postun):update-alternatives
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Recommends: python-SQLAlchemy >= 0.9
|
|
|
|
|
Recommends: python-Sphinx-doc-man
|
|
|
|
|
Recommends: python-Whoosh >= 2.0
|
2018-05-23 14:18:27 +02:00
|
|
|
|
BuildArch: noarch
|
2022-01-28 12:01:40 +01:00
|
|
|
|
%if 0%{?python_version_nodots} < 310
|
|
|
|
|
Requires: python-importlib-metadata >= 4.4
|
|
|
|
|
%endif
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if %{with test}
|
2020-05-11 15:43:53 +02:00
|
|
|
|
BuildRequires: %{python_module Cython}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
BuildRequires: %{python_module Sphinx = %{version}}
|
2019-04-10 09:13:51 +02:00
|
|
|
|
BuildRequires: %{python_module Sphinx-latex = %{version}}
|
Accepting request 1082382 from home:marxin:branches:devel:languages:python
- Bump to version 6.2.0
* Require Docutils 0.18.1 or greater.
* LaTeX: removal of some internal TeX ``\dimen`` registers (not previously
publicly documented) as per 5.1.0 code comments in ``sphinx.sty``:
``\sphinxverbatimsep``, ``\sphinxverbatimborder``, ``\sphinxshadowsep``,
``\sphinxshadowsize``, and ``\sphinxshadowrule``. (refs: #11105)
* Remove ``.egg`` support from pycode ``ModuleAnalyser``; Python eggs are a
now-obsolete binary distribution format
* #11089: Remove deprecated code in ``sphinx.builders.linkcheck``.
Patch by Daniel Eades
* Remove internal-only ``sphinx.locale.setlocale``
* #11247: Deprecate the legacy ``intersphinx_mapping`` format
* ``sphinx.util.osutil.cd`` is deprecated in favour of ``contextlib.chdir``.
* #11277: :rst:dir:`autoproperty` allows the return type to be specified as
a type comment (e.g., ``# type: () -> int``). Patch by Bénédikt Tran
* #10811: Autosummary: extend ``__all__`` to imported members for template rendering
when option ``autosummary_ignore_module_all`` is set to ``False``. Patch by
Clement Pinard
* #11147: Add a ``content_offset`` parameter to ``nested_parse_with_titles()``,
allowing for correct line numbers during nested parsing.
Patch by Jeremy Maitin-Shepard
* Update to Unicode CLDR 42
* Add a ``--jobs`` synonym for ``-j``. Patch by Hugo van Kemenade
* LaTeX: a command ``\sphinxbox`` for styling text elements with a (possibly
rounded) box, optional background color and shadow, has been added.
See :ref:`sphinxbox`. (refs: #11224)
* LaTeX: add ``\sphinxstylenotetitle``, ..., ``\sphinxstylewarningtitle``, ...,
for an extra layer of mark-up freeing up ``\sphinxstrong`` for other uses.
See :ref:`latex-macros`. (refs: #11267)
* LaTeX: :dudir:`note`, :dudir:`hint`, :dudir:`important` and :dudir:`tip` can
OBS-URL: https://build.opensuse.org/request/show/1082382
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=236
2023-04-24 13:22:35 +02:00
|
|
|
|
BuildRequires: %{python_module filelock}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
BuildRequires: %{python_module html5lib}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module sphinxcontrib-websupport}
|
2020-05-12 13:02:49 +02:00
|
|
|
|
BuildRequires: %{python_module testsuite}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
BuildRequires: ImageMagick
|
2020-12-05 18:44:43 +01:00
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
# For PNG format
|
|
|
|
|
BuildRequires: graphviz-gd
|
|
|
|
|
# For PDF format (!?)
|
|
|
|
|
BuildRequires: graphviz-gnome
|
2021-11-28 20:14:11 +01:00
|
|
|
|
BuildRequires: texlive-tex-gyre
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_subpackages
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
|
|
|
|
%description
|
2017-09-12 17:25:47 +02:00
|
|
|
|
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.
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2017-09-12 17:25:47 +02:00
|
|
|
|
Sphinx uses reStructuredText as its markup language. Sphinx draws from
|
|
|
|
|
the parsing and translating suite, the Docutils.
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%package latex
|
|
|
|
|
Summary: Sphinx packages for LaTeX
|
|
|
|
|
Group: Productivity/Publishing/TeX/Base
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires: python-Sphinx = %{version}
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: texlive-dvipng
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires: texlive-gnu-freefont
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: texlive-latex
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: texlive-latexmk
|
|
|
|
|
Requires: texlive-makeindex
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: texlive-metafont
|
|
|
|
|
Requires: texlive-pdftex
|
|
|
|
|
Requires: tex(8r.enc)
|
|
|
|
|
Requires: tex(alltt.sty)
|
|
|
|
|
Requires: tex(amsfonts.sty)
|
|
|
|
|
Requires: tex(amsmath.sty)
|
|
|
|
|
Requires: tex(amssymb.sty)
|
|
|
|
|
Requires: tex(amsthm.sty)
|
2018-07-20 14:46:04 +02:00
|
|
|
|
Requires: tex(anyfontsize.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(array.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(article.cls)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(atbegshi.sty)
|
|
|
|
|
Requires: tex(babel.sty)
|
|
|
|
|
Requires: tex(bm.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(capt-of.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(cmap.sty)
|
|
|
|
|
Requires: tex(color.sty)
|
|
|
|
|
Requires: tex(colortbl.sty)
|
|
|
|
|
Requires: tex(dvipdfmx.def)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(english.ldf)
|
|
|
|
|
Requires: tex(eqparbox.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(fancybox.sty)
|
|
|
|
|
Requires: tex(fancyhdr.sty)
|
|
|
|
|
Requires: tex(fancyvrb.sty)
|
|
|
|
|
Requires: tex(float.sty)
|
|
|
|
|
Requires: tex(fncychap.sty)
|
|
|
|
|
Requires: tex(fontenc.sty)
|
|
|
|
|
Requires: tex(footnote.sty)
|
|
|
|
|
Requires: tex(framed.sty)
|
|
|
|
|
Requires: tex(graphics.sty)
|
|
|
|
|
Requires: tex(graphicx.sty)
|
|
|
|
|
Requires: tex(hypcap.sty)
|
|
|
|
|
Requires: tex(hyperref.sty)
|
|
|
|
|
Requires: tex(ifthen.sty)
|
|
|
|
|
Requires: tex(inputenc.sty)
|
|
|
|
|
Requires: tex(longtable.sty)
|
2019-06-07 12:48:28 +02:00
|
|
|
|
Requires: tex(luatex85.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(makeidx.sty)
|
|
|
|
|
Requires: tex(multirow.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(needspace.sty)
|
|
|
|
|
Requires: tex(newfloat.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(palatino.sty)
|
|
|
|
|
Requires: tex(parskip.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(pcrr.tfm)
|
|
|
|
|
Requires: tex(pdftex.def)
|
|
|
|
|
Requires: tex(pdftex.map)
|
|
|
|
|
Requires: tex(phvr.tfm)
|
2018-07-20 14:46:04 +02:00
|
|
|
|
Requires: tex(polyglossia.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(pplr.tfm)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(preview.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(ptmr.tfm)
|
|
|
|
|
Requires: tex(pzcmi.tfm)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(tabulary.sty)
|
|
|
|
|
Requires: tex(textcomp.sty)
|
2022-07-19 20:18:22 +02:00
|
|
|
|
Requires: tex(tgtermes.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
Requires: tex(threeparttable.sty)
|
|
|
|
|
Requires: tex(times.sty)
|
|
|
|
|
Requires: tex(titlesec.sty)
|
|
|
|
|
Requires: tex(upquote.sty)
|
2016-02-17 10:13:39 +01:00
|
|
|
|
Requires: tex(utf8.def)
|
|
|
|
|
Requires: tex(utf8x.def)
|
2017-08-24 18:44:23 +02:00
|
|
|
|
Requires: tex(varwidth.sty)
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: tex(wrapfig.sty)
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
|
|
|
|
%description latex
|
2017-09-12 17:25:47 +02:00
|
|
|
|
Sphinx is a tool that facilitates creating documentation for Python
|
|
|
|
|
projects (or other documents consisting of multiple reStructuredText
|
|
|
|
|
sources).
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
This package contains the LaTeX components for python-Sphinx.
|
|
|
|
|
|
2023-04-26 23:16:56 +02:00
|
|
|
|
%if 0%{?suse_version} > 1500
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%package -n python-Sphinx-doc
|
|
|
|
|
Summary: Man files for python-Sphinx
|
|
|
|
|
Group: Documentation/Other
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python3-Sphinx = %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-Sphinx-doc
|
|
|
|
|
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 -n python-Sphinx-doc-man
|
|
|
|
|
Summary: Man files for python-Sphinx
|
|
|
|
|
Group: Documentation/Man
|
2019-06-06 14:55:31 +02:00
|
|
|
|
Requires: python3-Sphinx = %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
Requires(post): update-alternatives
|
2021-04-06 03:33:36 +02:00
|
|
|
|
Requires(postun):update-alternatives
|
2019-06-07 12:48:28 +02:00
|
|
|
|
Supplements: python3-Sphinx
|
2021-11-10 14:57:54 +01:00
|
|
|
|
Obsoletes: python-Sphinx-doc-man-common <= %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-Sphinx-doc-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 python-Sphinx-doc-html
|
|
|
|
|
Summary: HTML Documentation for python-Sphinx
|
|
|
|
|
Group: Documentation/HTML
|
2021-11-10 14:57:54 +01:00
|
|
|
|
Provides: python-Sphinx-doc-html = %{version}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
%description -n python-Sphinx-doc-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.
|
2023-04-26 23:16:56 +02:00
|
|
|
|
%endif
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%prep
|
Accepting request 1101202 from home:marxin:branches:devel:languages:python
- Update to 7.1.1:
* #11514: Fix ``SOURCE_DATE_EPOCH`` in multi-line copyright footer.
Patch by Bénédikt Tran.
- Update to 7.1.0:
* Releases are no longer signed, given the `change in PyPI policy`_.
* #11412: Emit warnings on using a deprecated Python-specific index entry type
(namely, ``module``, ``keyword``, ``operator``, ``object``, ``exception``,
``statement``, and ``builtin``) in the :rst:dir:`index` directive, and
set the removal version to Sphinx 9. Patch by Adam Turner.
* #11415: Add a checksum to JavaScript and CSS asset URIs included within
generated HTML, using the CRC32 algorithm.
* :meth:`~sphinx.application.Sphinx.require_sphinx` now allows the version
requirement to be specified as ``(major, minor)``.
* #11011: Allow configuring a line-length limit for object signatures, via
:confval:`maximum_signature_line_length` and the domain-specific variants.
If the length of the signature (in characters) is greater than the configured
limit, each parameter in the signature will be split to its own logical line.
This behaviour may also be controlled by options on object description
directives, for example :rst:dir:`py:function:single-line-parameter-list`.
Patch by Thomas Louf, Adam Turner, and Jean-François B.
* #10983: Support for multiline copyright statements in the footer block.
Patch by Stefanie Molin
* ``sphinx.util.display.status_iterator`` now clears the current line
with ANSI control codes, rather than overprinting with space characters.
* #11431: linkcheck: Treat SSL failures as broken links.
Patch by Bénédikt Tran
* #11157: Keep the ``translated`` attribute on translated nodes.
* #11451: Improve the traceback displayed when using :option:`sphinx-build -T`
in parallel builds. Patch by Bénédikt Tran
* #11324: linkcheck: Use session-basd HTTP requests.
OBS-URL: https://build.opensuse.org/request/show/1101202
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=245
2023-07-29 11:12:43 +02:00
|
|
|
|
%setup -q -n sphinx-%{version}
|
2020-09-28 15:45:58 +02:00
|
|
|
|
%autopatch -p1
|
2016-02-17 10:13:39 +01:00
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%build
|
2022-09-28 18:52:39 +02:00
|
|
|
|
%pyproject_wheel
|
2017-04-24 22:54:10 +02:00
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if %{with test}
|
|
|
|
|
mkdir build.doc
|
|
|
|
|
|
2020-05-12 13:02:49 +02:00
|
|
|
|
cp %{SOURCE2} doc/python3.inv
|
2021-01-11 16:01:56 +01:00
|
|
|
|
cp %{SOURCE3} doc/requests.inv
|
2022-01-18 22:35:10 +01:00
|
|
|
|
cp %{SOURCE4} doc/readthedocs.inv
|
2020-12-05 18:44:43 +01:00
|
|
|
|
%{python_expand # Use one bundled intersphinx inventory for all flavors.
|
|
|
|
|
# The python3.6 inventory fails to build even in its own flavor.
|
|
|
|
|
# Use a more recent default (currently 3.9) from the source tag instead.
|
2021-01-11 16:01:56 +01:00
|
|
|
|
# The same for requests.
|
|
|
|
|
sed -i -e "s/\((.https:..docs.python.org.3.., \)None\()\)/\1'python3.inv'\2/g" doc/conf.py
|
2022-09-28 18:52:39 +02:00
|
|
|
|
sed -i -e "s/\((.https:..requests.readthedocs.io.*, \)None\()\)/\1'requests.inv'\2/g" doc/conf.py
|
2022-01-18 22:35:10 +01:00
|
|
|
|
sed -i -e "s/\((.https:..docs.readthedocs.io.*, \)None\()\)/\1'readthedocs.inv'\2/g" doc/conf.py
|
2022-09-28 18:52:39 +02:00
|
|
|
|
# rm build/sphinx/html/.buildinfo
|
Accepting request 1082382 from home:marxin:branches:devel:languages:python
- Bump to version 6.2.0
* Require Docutils 0.18.1 or greater.
* LaTeX: removal of some internal TeX ``\dimen`` registers (not previously
publicly documented) as per 5.1.0 code comments in ``sphinx.sty``:
``\sphinxverbatimsep``, ``\sphinxverbatimborder``, ``\sphinxshadowsep``,
``\sphinxshadowsize``, and ``\sphinxshadowrule``. (refs: #11105)
* Remove ``.egg`` support from pycode ``ModuleAnalyser``; Python eggs are a
now-obsolete binary distribution format
* #11089: Remove deprecated code in ``sphinx.builders.linkcheck``.
Patch by Daniel Eades
* Remove internal-only ``sphinx.locale.setlocale``
* #11247: Deprecate the legacy ``intersphinx_mapping`` format
* ``sphinx.util.osutil.cd`` is deprecated in favour of ``contextlib.chdir``.
* #11277: :rst:dir:`autoproperty` allows the return type to be specified as
a type comment (e.g., ``# type: () -> int``). Patch by Bénédikt Tran
* #10811: Autosummary: extend ``__all__`` to imported members for template rendering
when option ``autosummary_ignore_module_all`` is set to ``False``. Patch by
Clement Pinard
* #11147: Add a ``content_offset`` parameter to ``nested_parse_with_titles()``,
allowing for correct line numbers during nested parsing.
Patch by Jeremy Maitin-Shepard
* Update to Unicode CLDR 42
* Add a ``--jobs`` synonym for ``-j``. Patch by Hugo van Kemenade
* LaTeX: a command ``\sphinxbox`` for styling text elements with a (possibly
rounded) box, optional background color and shadow, has been added.
See :ref:`sphinxbox`. (refs: #11224)
* LaTeX: add ``\sphinxstylenotetitle``, ..., ``\sphinxstylewarningtitle``, ...,
for an extra layer of mark-up freeing up ``\sphinxstrong`` for other uses.
See :ref:`latex-macros`. (refs: #11267)
* LaTeX: :dudir:`note`, :dudir:`hint`, :dudir:`important` and :dudir:`tip` can
OBS-URL: https://build.opensuse.org/request/show/1082382
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=236
2023-04-24 13:22:35 +02:00
|
|
|
|
$python -m sphinx -b man -j auto ./doc ./build.doc/man
|
|
|
|
|
$python -m sphinx -b html -j auto ./doc ./build.doc/html
|
2020-12-05 18:44:43 +01:00
|
|
|
|
}
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%install
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if ! %{with test}
|
2022-09-28 18:52:39 +02:00
|
|
|
|
%pyproject_install
|
2017-04-24 22:54:10 +02:00
|
|
|
|
|
2017-05-08 17:39:30 +02:00
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-apidoc
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-autogen
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-build
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/sphinx-quickstart
|
2017-04-24 22:54:10 +02:00
|
|
|
|
|
2018-12-07 21:40:34 +01:00
|
|
|
|
%python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib
|
2017-05-08 17:39:30 +02:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2020-11-04 20:50:22 +01:00
|
|
|
|
# gh#openSUSE/python-rpm-macros#74
|
|
|
|
|
%{!?python_find_lang: %define python_find_lang() \
|
|
|
|
|
%find_lang %{**} \
|
|
|
|
|
langfile=%{?2}%{!?2:%1.lang} \
|
|
|
|
|
%{python_expand # \
|
|
|
|
|
grep -v 'python.*site-packages' ${langfile} > %{$python_prefix}-${langfile} \
|
|
|
|
|
grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} \
|
|
|
|
|
} \
|
2020-11-03 21:55:53 +01:00
|
|
|
|
}
|
2021-12-04 20:04:41 +01:00
|
|
|
|
%python_find_lang sphinx
|
2019-08-09 11:09:08 +02:00
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%else
|
2023-04-26 23:16:56 +02:00
|
|
|
|
%if 0%{?suse_version} > 1500
|
2019-03-09 08:50:00 +01:00
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
|
|
|
|
|
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
|
2022-01-18 22:35:10 +01:00
|
|
|
|
rm -rf %{buildroot}%{_docdir}/python-Sphinx/html/_images
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
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
|
|
|
|
|
%endif
|
2023-04-26 23:16:56 +02:00
|
|
|
|
%endif
|
2019-03-09 08:50:00 +01:00
|
|
|
|
|
2019-03-11 16:01:50 +01:00
|
|
|
|
# Always deduplicate
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%if ! %{with test}
|
2013-04-30 16:38:55 +02:00
|
|
|
|
%post
|
2023-01-29 19:59:47 +01:00
|
|
|
|
%python_install_alternative sphinx-apidoc sphinx-autogen sphinx-build sphinx-quickstart
|
|
|
|
|
:
|
2013-04-30 16:38:55 +02:00
|
|
|
|
|
2014-02-11 15:17:09 +01:00
|
|
|
|
%postun
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_uninstall_alternative sphinx-apidoc
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with test}
|
2023-08-23 14:29:29 +02:00
|
|
|
|
export PYTHONPATH=.
|
2019-03-09 08:50:00 +01:00
|
|
|
|
export LC_ALL="C.utf8"
|
2020-12-05 18:44:43 +01:00
|
|
|
|
# test_latex_images test downloading a remote image
|
2021-06-02 18:49:30 +02:00
|
|
|
|
# test_signature_annotations doesn’t work
|
2023-12-05 21:13:48 +01:00
|
|
|
|
%pytest tests -k 'not (linkcheck or test_latex_images or test_signature_annotations or test_copy_images)'
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
2013-04-30 16:38:55 +02:00
|
|
|
|
|
2019-06-06 14:55:31 +02:00
|
|
|
|
%if ! %{with test}
|
2020-11-03 21:55:53 +01:00
|
|
|
|
%files %{python_files} -f %{python_prefix}-sphinx.lang
|
2018-05-23 14:18:27 +02:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS CHANGES README.rst
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%python_alternative %{_bindir}/sphinx-apidoc
|
|
|
|
|
%python_alternative %{_bindir}/sphinx-autogen
|
|
|
|
|
%python_alternative %{_bindir}/sphinx-build
|
|
|
|
|
%python_alternative %{_bindir}/sphinx-quickstart
|
2013-09-16 11:26:51 +02:00
|
|
|
|
%{python_sitelib}/sphinx/
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%exclude %{python_sitelib}/sphinx/texinputs/
|
2022-09-28 18:52:39 +02:00
|
|
|
|
%dir %{python_sitelib}/sphinx-%{version}.dist-info
|
|
|
|
|
%{python_sitelib}/sphinx-%{version}.dist-info/*
|
2018-12-07 21:22:04 +01:00
|
|
|
|
%dir %{python_sitelib}/sphinxcontrib
|
2011-07-03 13:34:40 +02:00
|
|
|
|
|
2017-04-24 22:54:10 +02:00
|
|
|
|
%files %{python_files latex}
|
2018-05-23 14:18:27 +02:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%{python_sitelib}/sphinx/texinputs/
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with test}
|
2023-04-26 23:16:56 +02:00
|
|
|
|
%if 0%{?suse_version} > 1500
|
2019-03-09 08:50:00 +01:00
|
|
|
|
%files -n python-Sphinx-doc-man
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
%files -n python-Sphinx-doc-html
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc AUTHORS
|
|
|
|
|
%dir %{_docdir}/python-Sphinx/
|
|
|
|
|
%{_docdir}/python-Sphinx/html/
|
2015-09-09 09:25:00 +02:00
|
|
|
|
%endif
|
2023-04-26 23:16:56 +02:00
|
|
|
|
%endif
|
2015-09-09 09:25:00 +02:00
|
|
|
|
|
2011-07-03 13:34:40 +02:00
|
|
|
|
%changelog
|