Hello community,

here is the log from the commit of package python-Sphinx.13909 for 
openSUSE:Leap:15.2:Update checked in at 2020-09-08 06:23:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/python-Sphinx.13909 (Old)
 and      /work/SRC/openSUSE:Leap:15.2:Update/.python-Sphinx.13909.new.3399 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Sphinx.13909"

Tue Sep  8 06:23:53 2020 rev:1 rq:832395 version:1.7.6

Changes:
--------
New Changes file:

--- /dev/null   2020-08-06 00:20:10.149648038 +0200
+++ 
/work/SRC/openSUSE:Leap:15.2:Update/.python-Sphinx.13909.new.3399/python-Sphinx-doc.changes
 2020-09-08 06:23:54.359945199 +0200
@@ -0,0 +1,1077 @@
+-------------------------------------------------------------------
+Thu Jun 18 07:29:25 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Disable test test_correct_year as we no longer match the
+  range and thus fail the builds on Leap bsc#1172721
+
+-------------------------------------------------------------------
+Wed Jul 18 15:28:39 UTC 2018 - [email protected]
+
+- 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
+ * html: crashes if copying static files are failed
+ * autodoc: Fix formatting type annotations for tuples with more than two 
arguments
+ * i18n: crashed by auto-symbol footnote references
+ * autosummary: module summary has been broken when it starts with heading
+
+-------------------------------------------------------------------
+Tue Jul 17 08:15:33 UTC 2018 - [email protected]
+
+- update to 1.7.5
+
+-------------------------------------------------------------------
+Wed May 23 12:17:03 UTC 2018 - [email protected]
+
+- update to 1.7.4
+- ver long list of changes - please check www.sphinx-doc.org for details
+ 
+-------------------------------------------------------------------
+Sat Feb 24 18:31:35 UTC 2018 - [email protected]
+
+- specfile:
+  * update copyright year
+
+- update to version 1.7.1:
+  * Deprecated
+    + #4623: "sphinx.build_main()" is deprecated. Use
+       "sphinx.cmd.build.build_main()" instead.
+    + autosummary: The interface of
+      "sphinx.ext.autosummary.get_documenter()" has been changed
+      (Since 1.7.0)
+    + #4664: "sphinx.ext.intersphinx.debug()" is deprecated. Use
+       "sphinx.ext.intersphinx.inspect_main()" instead.
+  * Bugs fixed
+    + #4608: epub: Invalid meta tag is generated
+    + #4260: autodoc: keyword only argument separator is not
+       disappeared if it is appeared at top of the argument list
+    + #4622: epub: :confval:`epub_scheme` does not effect to
+       content.opf
+    + #4627: graphviz: Fit graphviz images to page
+    + #4617: quickstart: PROJECT_DIR argument is required
+    + #4623: sphinx.build_main no longer exists in 1.7.0
+    + #4615: The argument of "sphinx.build" has been changed in 1.7.0
+    + autosummary: The interface of
+      "sphinx.ext.autosummary.get_documenter()" has been changed
+    + #4630: Have order on msgids in sphinx.pot deterministic
+    + #4563: autosummary: Incorrect end of line punctuation detection
+    + #4577: Enumerated sublists with explicit start with wrong number
+    + #4641: A external link in TOC cannot contain "?" with ":glob:"
+       option
+    + C++, add missing parsing of explicit casts and typeid in
+      expression parsing.
+    + C++, add missing parsing of "this" in expression parsing.
+    + #4655: Fix incomplete localization strings in Polish
+    + #4653: Fix error reporting for parameterless ImportErrors
+    + #4664: Reading objects.inv fails again
+    + #4662: "any" refs with "term" targets crash when an ambiguity is
+       encountered
+
+- changes to version 1.7.0:
+  * long changelog, see 
https://github.com/sphinx-doc/sphinx/blob/master/CHANGES
+
+- changes from version 1.6.7:
+  * Bugs fixed
+    + #1922: html search: Upper characters problem in French
+    + #4412: Updated jQuery version from 3.1.0 to 3.2.1
+    + #4438: math: math with labels with whitespace cause html error
+    + #2437: make full reference for classes, aliased with "alias of"
+    + #4434: pure numbers as link targets produce warning
+    + #4477: Build fails after building specific files
+    + #4449: apidoc: include "empty" packages that contain modules
+    + #3917: citation labels are tranformed to ellipsis
+    + #4501: graphviz: epub3 validation error caused if graph is not
+       clickable
+    + #4514: graphviz: workaround for wrong map ID which graphviz
+       generates
+    + #4525: autosectionlabel does not support parallel build
+    + #3953: Do not raise warning when there is a working intersphinx
+       inventory
+    + #4487: math: ValueError is raised on parallel build. Thanks to
+       jschueller.
+    + #2372: autosummary: invalid signatures are shown for type
+       annotated functions
+    + #3942: html: table is not aligned to center even if ":align:
+       center"
+
+- changes from version 1.6.6:
+  * Features added
+    + #4181: autodoc: Sort dictionary keys when possible
+    + "VerbatimHighlightColor" is a new :ref:`LaTeX 'sphinxsetup'
+      <latexsphinxsetup>` key (refs: #4285)
+    + Easier customizability of LaTeX macros involved in rendering of
+      code-blocks
+    + Show traceback if conf.py raises an exception (refs: #4369)
+    + Add :confval:`smartquotes` to disable smart quotes through
+      "conf.py" (refs: #3967)
+    + Add :confval:`smartquotes_action` and
+      :confval:`smartquotes_excludes` (refs: #4142, #4357)
+  * Bugs fixed
+    + #4334: sphinx-apidoc: Don't generate references to non-existing
+       files in TOC
+    + #4206: latex: reST label between paragraphs loses paragraph
+       break
+    + #4231: html: Apply fixFirefoxAnchorBug only under Firefox
+    + #4221: napoleon depends on autodoc, but users need to load it
+       manually
+    + #2298: automodule fails to document a class attribute
+    + #4099: C++: properly link class reference to class from inside
+       constructor
+    + #4267: PDF build broken by Unicode U+2116 NUMERO SIGN character
+    + #4249: PDF output: Pygments error highlighting increases line
+       spacing in code blocks
+    + #1238: Support ":emphasize-lines:" in PDF output
+    + #4279: Sphinx crashes with pickling error when run with multiple
+       processes and remote image
+    + #1421: Respect the quiet flag in sphinx-quickstart
+    + #4281: Race conditions when creating output directory
+    + #4315: For PDF 'howto' documents,
+       "latex_toplevel_sectioning='part'" generates "\chapter"
+       commands
+    + #4214: Two todolist directives break sphinx-1.6.5
+    + Fix links to external option docs with intersphinx (refs: #3769)
+    + #4091: Private members not documented without :undoc-members:
+
+-------------------------------------------------------------------
+Fri Oct 27 16:13:16 UTC 2017 - [email protected]
+
+- update to version 1.6.5:
+  * Features added
+    + #4107: Make searchtools.js compatible with pre-Sphinx1.5
+      templates
+    + #4112: Don't override the smart_quotes setting if it was already
+      set
+    + #4125: Display reference texts of original and translated
+      passages on i18n warning message
+    + #4147: Include the exception when logging PO/MO file read/write
+  * Bugs fixed
+    + #4085: Failed PDF build from image in parsed-literal using
+      ":align:" option
+    + #4100: Remove debug print from autodoc extension
+    + #3987: Changing theme from alabaster causes HTML build to fail
+    + #4096: C++, don't crash when using the wrong role type. Thanks
+      to mitya57.
+    + #4070, #4111: crashes when the warning message contains format
+      strings (again)
+    + #4108: Search word highlighting breaks SVG images
+    + #3692: Unable to build HTML if writing .buildinfo failed
+    + #4152: HTML writer crashes if a field list is placed on top of
+      the document
+    + #4063: Sphinx crashes when labeling directive ".. todolist::"
+    + #4134: [doc] :file:`docutils.conf` is not documented explicitly
+    + #4169: Chinese language doesn't trigger Chinese search
+      automatically
+    + #1020: ext.todo todolist not linking to the page in pdflatex
+    + #3965: New quickstart generates wrong SPHINXBUILD in Makefile
+    + #3739: ":module:" option is ignored at content of pyobjects
+    + #4149: Documentation: Help choosing :confval:`latex_engine`
+    + #4090: [doc] :confval:`latex_additional_files` with extra LaTeX
+      macros should not use ".tex" extension
+    + Failed to convert reST parser error to warning (refs: #4132)
++++ 880 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Leap:15.2:Update/.python-Sphinx.13909.new.3399/python-Sphinx-doc.changes
New Changes file:

--- /dev/null   2020-08-06 00:20:10.149648038 +0200
+++ 
/work/SRC/openSUSE:Leap:15.2:Update/.python-Sphinx.13909.new.3399/python-Sphinx.changes
     2020-09-08 06:23:54.427945235 +0200
@@ -0,0 +1,1149 @@
+-------------------------------------------------------------------
+Tue Jul 28 10:15:26 UTC 2020 - Matej Cepl <[email protected]>
+
+- Add missing Requires of python-packaging (bsc#1174571) 
+
+-------------------------------------------------------------------
+Thu Dec  5 08:31:54 UTC 2019 - Fabian Vogt <[email protected]>
+
+- Add patch to produce output compatible with current Qt
+  (bsc#1157793, boo#1158158):
+  * fix-keyword-escaping.patch
+
+-------------------------------------------------------------------
+Fri Dec  7 21:20:58 CET 2018 - [email protected]
+
+- Make this package also own %{python_sitelib}/sphinxcontrib
+  directory, so it is properly owned.
+
+-------------------------------------------------------------------
+Wed Jul 18 15:28:39 UTC 2018 - [email protected]
+
+- update to 1.7.6
+- fix Requires based on results of Shinx testsuite
+ * 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
+ * html: crashes if copying static files are failed
+ * autodoc: Fix formatting type annotations for tuples with more than two 
arguments
+ * i18n: crashed by auto-symbol footnote references
+ * autosummary: module summary has been broken when it starts with heading
+
+-------------------------------------------------------------------
+Tue Jul 17 08:14:57 UTC 2018 - [email protected]
+
+- update to 1.7.5:
+  * #4924: html search: Upper characters problem in any other languages
+  * #4932: apidoc: some subpackage is ignored if sibling subpackage contains a
+    module starting with underscore
+  * #4863, #4938, #4939: i18n doesn't handle node.title correctly tat used for
+    contents, topic, admonition, table and section.
+  * #4913: i18n: literal blocks in bullet list are not translated
+  * #4962: C++, raised TypeError on duplicate declaration.
+  * #4825: C++, properly parse expr roles and give better error messages when
+    (escaped) line breaks are present.
+  * C++, properly use ``desc_addname`` nodes for prefixes of names.
+  * C++, parse pack expansions in function calls.
+  * #4915, #4916: links on search page are broken when using dirhtml builder
+  * #4969: autodoc: constructor method should not have return annotation
+  * latex: deeply nested enumerated list which is beginning with non-1 causes
+    LaTeX engine crashed
+  * #4978: latex: shorthandoff is not set up for Brazil locale
+  * #4928: i18n: Ignore dot-directories like .git/ in LC_MESSAGES/
+  * #4946: py domain: type field could not handle "None" as a type
+  * #4979: latex: Incorrect escaping of curly braces in index entries
+  * #4956: autodoc: Failed to extract document from a subclass of the class on
+    mocked module
+  * #4973: latex: glossary directive adds whitespace to each item
+  * #4980: latex: Explicit labels on code blocks are duplicated
+  * #4919: node.asdom() crashes if toctree has :numbered: option
+  * #4914: autodoc: Parsing error when using dataclasses without default values
+  * #4931: autodoc: crashed when handler for autodoc-skip-member raises an 
error
+  * #4931: autodoc: crashed when subclass of mocked class are processed by
+    napoleon module
+  * #5007: sphinx-build crashes when error log contains a "%" character
+
+-------------------------------------------------------------------
+Wed May 23 12:14:49 UTC 2018 - [email protected]
+
+- update to 1.7.4
+- very long list of changes - please see 
http://www.sphinx-doc.org/en/master/changes.html#release-1-7-4-released-apr-25-2018
+
+-------------------------------------------------------------------
+Thu Mar  8 10:22:47 UTC 2018 - [email protected]
+
+- Allows Recommends and Suggest in Fedora
+
+-------------------------------------------------------------------
+Tue Mar  6 11:55:15 UTC 2018 - [email protected]
+
+- go back to a working sphinx version for now (1.6.5)
+  * newer versions are not able to build openstack clients
+
+-------------------------------------------------------------------
+Tue Feb 27 14:09:37 UTC 2018 - [email protected]
+
+- Recommends only on SUSE 
+
+-------------------------------------------------------------------
+Sat Feb 24 18:31:35 UTC 2018 - [email protected]
+
+- specfile:
+  * update copyright year
+  * remove sed for sed command for sphinx/pycode/pgen2/token.py
+    (not in tar-ball anymore)
+
+- update to version 1.7.1:
+  * Deprecated
+    + #4623: "sphinx.build_main()" is deprecated. Use
+       "sphinx.cmd.build.build_main()" instead.
+    + autosummary: The interface of
+      "sphinx.ext.autosummary.get_documenter()" has been changed
+      (Since 1.7.0)
+    + #4664: "sphinx.ext.intersphinx.debug()" is deprecated. Use
+       "sphinx.ext.intersphinx.inspect_main()" instead.
+  * Bugs fixed
+    + #4608: epub: Invalid meta tag is generated
+    + #4260: autodoc: keyword only argument separator is not
+       disappeared if it is appeared at top of the argument list
+    + #4622: epub: :confval:`epub_scheme` does not effect to
+       content.opf
+    + #4627: graphviz: Fit graphviz images to page
+    + #4617: quickstart: PROJECT_DIR argument is required
+    + #4623: sphinx.build_main no longer exists in 1.7.0
+    + #4615: The argument of "sphinx.build" has been changed in 1.7.0
+    + autosummary: The interface of
+      "sphinx.ext.autosummary.get_documenter()" has been changed
+    + #4630: Have order on msgids in sphinx.pot deterministic
+    + #4563: autosummary: Incorrect end of line punctuation detection
+    + #4577: Enumerated sublists with explicit start with wrong number
+    + #4641: A external link in TOC cannot contain "?" with ":glob:"
+       option
+    + C++, add missing parsing of explicit casts and typeid in
+      expression parsing.
+    + C++, add missing parsing of "this" in expression parsing.
+    + #4655: Fix incomplete localization strings in Polish
+    + #4653: Fix error reporting for parameterless ImportErrors
+    + #4664: Reading objects.inv fails again
+    + #4662: "any" refs with "term" targets crash when an ambiguity is
+       encountered
+
+- changes to version 1.7.0:
+  * long changelog, see 
https://github.com/sphinx-doc/sphinx/blob/master/CHANGES
+
+- changes from version 1.6.7:
+  * Bugs fixed
+    + #1922: html search: Upper characters problem in French
+    + #4412: Updated jQuery version from 3.1.0 to 3.2.1
+    + #4438: math: math with labels with whitespace cause html error
+    + #2437: make full reference for classes, aliased with "alias of"
+    + #4434: pure numbers as link targets produce warning
+    + #4477: Build fails after building specific files
+    + #4449: apidoc: include "empty" packages that contain modules
+    + #3917: citation labels are tranformed to ellipsis
+    + #4501: graphviz: epub3 validation error caused if graph is not
+       clickable
+    + #4514: graphviz: workaround for wrong map ID which graphviz
+       generates
+    + #4525: autosectionlabel does not support parallel build
+    + #3953: Do not raise warning when there is a working intersphinx
+       inventory
+    + #4487: math: ValueError is raised on parallel build. Thanks to
+       jschueller.
+    + #2372: autosummary: invalid signatures are shown for type
+       annotated functions
+    + #3942: html: table is not aligned to center even if ":align:
+       center"
+
+- changes from version 1.6.6:
+  * Features added
+    + #4181: autodoc: Sort dictionary keys when possible
+    + "VerbatimHighlightColor" is a new :ref:`LaTeX 'sphinxsetup'
+      <latexsphinxsetup>` key (refs: #4285)
+    + Easier customizability of LaTeX macros involved in rendering of
+      code-blocks
+    + Show traceback if conf.py raises an exception (refs: #4369)
+    + Add :confval:`smartquotes` to disable smart quotes through
+      "conf.py" (refs: #3967)
+    + Add :confval:`smartquotes_action` and
+      :confval:`smartquotes_excludes` (refs: #4142, #4357)
+  * Bugs fixed
+    + #4334: sphinx-apidoc: Don't generate references to non-existing
+       files in TOC
++++ 952 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Leap:15.2:Update/.python-Sphinx.13909.new.3399/python-Sphinx.changes

New:
----
  Sphinx-1.7.6.tar.gz
  disable-test.patch
  fix-keyword-escaping.patch
  python-Sphinx-doc.changes
  python-Sphinx-doc.spec
  python-Sphinx.changes
  python-Sphinx.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Sphinx-doc.spec ++++++
#
# 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 https://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 and not test_correct_year" -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
++++++ python-Sphinx.spec ++++++
#
# spec file for package python-Sphinx
#
# 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 https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%if 0%{?suse_version} != 1315
%bcond_without latex
%else
%bcond_with latex
%endif
Name:           python-Sphinx
Version:        1.7.6
Release:        0
Summary:        Python documentation generator
License:        BSD-2-Clause
Group:          Development/Languages/Python
URL:            http://sphinx-doc.org
Source:         
https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
Patch1:         disable-test.patch
# PATCH-FIX-UPSTREAM 
(https://github.com/sphinx-doc/sphinxcontrib-qthelp/commit/6233326c914145ff0334d680b7e11e37afb12ec1)
Patch2:         fix-keyword-escaping.patch
BuildRequires:  %{python_module base}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
# workaround for suboptimal CentOS-7 project config
#!BuildIgnore:  texinfo
Requires:       python-Babel >= 1.3
Requires:       python-Jinja2 >= 2.3
Requires:       python-Pygments >= 2.0
Requires:       python-alabaster >= 0.7
Requires:       python-docutils >= 0.11
Requires:       python-imagesize
Requires:       python-requests >= 2.0.0
Requires:       python-six >= 1.5
Requires:       python-snowballstemmer >= 1.1
Requires:       python-sphinx_rtd_theme
Requires:       python-sphinxcontrib-websupport
Requires:       python-packaging
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch:      noarch
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
Recommends:     %{name}-doc-man
Recommends:     python-SQLAlchemy >= 0.9
Recommends:     python-Whoosh >= 2.0
%endif
%ifpython2
Requires:       python-enum34
Requires:       python-typing
%endif
%ifpython3
%if %{python3_version_nodots} < 35
Requires:       python-typing
%endif
%endif
%if 0%{?suse_version}
Recommends:     python-rst2pdf
%endif
%ifpython2
Obsoletes:      %{oldpython}-sphinx < %{version}
Provides:       %{oldpython}-sphinx = %{version}
%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.

%package latex
Summary:        Sphinx packages for LaTeX
Group:          Productivity/Publishing/TeX/Base
Requires:       %{name} = %{version}
Requires:       texlive-latex
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)
Requires:       tex(anyfontsize.sty)
Requires:       tex(array.sty)
Requires:       tex(article.cls)
Requires:       tex(atbegshi.sty)
Requires:       tex(babel.sty)
Requires:       tex(bm.sty)
Requires:       tex(capt-of.sty)
Requires:       tex(cmap.sty)
Requires:       tex(color.sty)
Requires:       tex(colortbl.sty)
Requires:       tex(dvipdfmx.def)
Requires:       tex(english.ldf)
Requires:       tex(eqparbox.sty)
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)
Requires:       tex(makeidx.sty)
Requires:       tex(multirow.sty)
Requires:       tex(needspace.sty)
Requires:       tex(newfloat.sty)
Requires:       tex(palatino.sty)
Requires:       tex(parskip.sty)
Requires:       tex(pcrr.tfm)
Requires:       tex(pdftex.def)
Requires:       tex(pdftex.map)
Requires:       tex(phvr.tfm)
Requires:       tex(polyglossia.sty)
Requires:       tex(pplr.tfm)
Requires:       tex(preview.sty)
Requires:       tex(ptmr.tfm)
Requires:       tex(pzcmi.tfm)
Requires:       tex(tabulary.sty)
Requires:       tex(textcomp.sty)
Requires:       tex(threeparttable.sty)
Requires:       tex(times.sty)
Requires:       tex(titlesec.sty)
Requires:       tex(upquote.sty)
Requires:       tex(utf8.def)
Requires:       tex(utf8x.def)
Requires:       tex(wrapfig.sty)
%if 0%{?suse_version} > 1320
Requires:       texlive-latexmk
Requires:       texlive-makeindex
Requires:       tex(varwidth.sty)
%endif

%description    latex
Sphinx is a tool that facilitates creating documentation for Python
projects (or other documents consisting of multiple reStructuredText
sources).

This package contains the LaTeX components for %{name}.

%prep
%autosetup -p1 -n Sphinx-%{version}

sed -i 's/\r$//' sphinx/themes/basic/static/jquery.js # Fix wrong end-of-line 
encoding

%build
%python_build

%install
%python_install

%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

%python_expand mkdir -p %{buildroot}%{$python_sitelib}/sphinxcontrib
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%post
%{python_install_alternative sphinx-apidoc sphinx-autogen sphinx-build 
sphinx-quickstart}

%postun
%python_uninstall_alternative sphinx-apidoc

%files %{python_files}
%license LICENSE
%doc AUTHORS CHANGES README.rst
%python_alternative %{_bindir}/sphinx-apidoc
%python_alternative %{_bindir}/sphinx-autogen
%python_alternative %{_bindir}/sphinx-build
%python_alternative %{_bindir}/sphinx-quickstart
%{python_sitelib}/sphinx/
%if %{with latex}
%exclude %{python_sitelib}/sphinx/texinputs/
%endif
%{python_sitelib}/Sphinx-%{version}-py*.egg-info
%dir %{python_sitelib}/sphinxcontrib

# Requirements are not available on SLES
%if %{with latex}
%files %{python_files latex}
%license LICENSE
%doc AUTHORS
%{python_sitelib}/sphinx/texinputs/
%endif

%changelog
++++++ disable-test.patch ++++++
Index: python-Sphinx/Sphinx-1.6.2/tests/test_build_latex.py
===================================================================
--- Sphinx-1.6.2/tests/test_build_latex.py
+++ Sphinx-1.6.2/tests/test_build_latex.py
@@ -1011,6 +1011,7 @@ def test_latex_raw_directive(app, status
 
 
 @pytest.mark.sphinx('latex', testroot='images')
[email protected](reason="no remote access in OBS")
 def test_latex_remote_images(app, status, warning):
     app.builder.build_all()
 
++++++ fix-keyword-escaping.patch ++++++
>From 866157b51443d59aaaff0efcce70bef82a448dad Mon Sep 17 00:00:00 2001
From: Takeshi KOMIYA <[email protected]>
Date: Sun, 24 Feb 2019 18:25:51 +0900
Subject: [PATCH 1/2] Fix #6097: the keyword IDs are not escaped qthelp in .qhp
 file

Backported to Sphinx 1.7.6 by [email protected]
---

Index: Sphinx-1.7.6/tests/roots/test-need-escaped/index.rst
===================================================================
--- Sphinx-1.7.6.orig/tests/roots/test-need-escaped/index.rst
+++ Sphinx-1.7.6/tests/roots/test-need-escaped/index.rst
@@ -21,6 +21,12 @@ Contents:
 
 .. index::
    pair: "subsection"; <subsection>
+   single: & (ampersand)
+   single: < (less)
+   single: > (greater)
+   single: Sphinx (document generator)
+   single: keyword1 (class in ID)
+   single: keyword2 (foo bar baz)
 
 ----------
 subsection
Index: Sphinx-1.7.6/sphinx/builders/qthelp.py
===================================================================
--- Sphinx-1.7.6.orig/sphinx/builders/qthelp.py
+++ Sphinx-1.7.6/sphinx/builders/qthelp.py
@@ -9,6 +9,7 @@
     :license: BSD, see LICENSE for details.
 """
 
+import html
 import codecs
 import os
 import posixpath
@@ -220,7 +221,7 @@ class QtHelpBuilder(StandaloneHTMLBuilde
             # descr = groupdict.get('descr')
             if shortname.endswith('()'):
                 shortname = shortname[:-2]
-            id = '%s.%s' % (id, shortname)
+            id = html.escape('%s.%s' % (id, shortname), True)
         else:
             id = None
 
Index: Sphinx-1.7.6/tests/test_build_qthelp.py
===================================================================
--- Sphinx-1.7.6.orig/tests/test_build_qthelp.py
+++ Sphinx-1.7.6/tests/test_build_qthelp.py
@@ -66,10 +66,26 @@ def test_qthelp_escaped(app, status, war
     assert toc[0][3].attrib == {'title': 'baz', 'ref': 'baz.html'}
 
     keywords = et.find('.//keywords')
-    assert len(keywords) == 2
-    assert keywords[0].attrib == {'name': '<subsection>', 'ref': 
'index.html#index-0'}
-    assert keywords[1].attrib == {'name': '"subsection"', 'ref': 
'index.html#index-0'}
-
+    assert len(keywords) == 8
+    assert keywords[1].attrib == {'name': '& (ampersand)',
+                                  'id': 'ampersand.&',
+                                  'ref': 'index.html#index-0'}
+    assert keywords[2].attrib == {'name': '< (less)',
+                                  'id': 'less.<',
+                                  'ref': 'index.html#index-0'}
+    assert keywords[3].attrib == {'name': '"subsection"',
+                                  'ref': 'index.html#index-0'}
+    assert keywords[4].attrib == {'name': '> (greater)',
+                                  'id': 'greater.>',
+                                  'ref': 'index.html#index-0'}
+    assert keywords[5].attrib == {'name': 'keyword1 (class in ID)',
+                                  'id': 'ID.keyword1',
+                                  'ref': 'index.html#index-0'}
+    assert keywords[6].attrib == {'name': 'keyword2 (foo bar baz)',
+                                  'ref': 'index.html#index-0'}
+    assert keywords[7].attrib == {'name': 'Sphinx (document generator)',
+                                  'id': 'document.Sphinx',
+                                  'ref': 'index.html#index-0'}
 
 @pytest.mark.sphinx('qthelp', testroot='basic')
 def test_qthelp_namespace(app, status, warning):

Reply via email to