Sync from SUSE:SLFO:Main python-sphinxcontrib-qthelp revision 35a7ee7b2ec20ef4f09dcb4bb79aff9f
This commit is contained in:
commit
fcd30144ac
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
26
python-sphinxcontrib-qthelp.changes
Normal file
26
python-sphinxcontrib-qthelp.changes
Normal file
@ -0,0 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:36:59 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add sle15_python_module_pythons (jsc#PED-68)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 13 22:45:10 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Make calling of %{sle15modernpython} optional.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 1 08:38:40 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Added sphinx5.patch
|
||||
* Fix build with the new Sphinx, sent upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 6 11:15:26 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
- version update to 1.0.3
|
||||
* Fix package metadata
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 6 12:32:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Initial commit, needed by Sphinx
|
80
python-sphinxcontrib-qthelp.spec
Normal file
80
python-sphinxcontrib-qthelp.spec
Normal file
@ -0,0 +1,80 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-sphinxcontrib-qthelp%{psuffix}
|
||||
Version: 1.0.3
|
||||
Release: 0
|
||||
Summary: Sphinx extension which outputs QtHelp
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sphinx-doc/sphinxcontrib-qthelp
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-qthelp/sphinxcontrib-qthelp-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/sphinx-doc/sphinxcontrib-qthelp/pull/14 Fix tests with Sphinx 5.0
|
||||
Patch0: sphinx5.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Sphinx
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sphinxcontrib-qthelp >= %{version}}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.
|
||||
|
||||
%prep
|
||||
%setup -q -n sphinxcontrib-qthelp-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.rst CHANGES
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%endif
|
||||
|
||||
%changelog
|
73
sphinx5.patch
Normal file
73
sphinx5.patch
Normal file
@ -0,0 +1,73 @@
|
||||
Index: sphinxcontrib-qthelp-1.0.3/tests/test_qthelp.py
|
||||
===================================================================
|
||||
--- sphinxcontrib-qthelp-1.0.3.orig/tests/test_qthelp.py
|
||||
+++ sphinxcontrib-qthelp-1.0.3/tests/test_qthelp.py
|
||||
@@ -17,7 +17,7 @@ from sphinx.testing.util import etree_pa
|
||||
def test_qthelp_basic(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
||||
- qhp = (app.outdir / 'Python.qhp').text()
|
||||
+ qhp = (app.outdir / 'Python.qhp').read_text()
|
||||
assert '<customFilter name="Python ">' in qhp
|
||||
assert '<filterAttribute>Python</filterAttribute>' in qhp
|
||||
assert '<filterAttribute></filterAttribute>' in qhp
|
||||
@@ -26,7 +26,7 @@ def test_qthelp_basic(app, status, warni
|
||||
assert '<file>index.html</file>' in qhp
|
||||
assert '<file>_static/basic.css</file>' in qhp
|
||||
|
||||
- qhcp = (app.outdir / 'Python.qhcp').text()
|
||||
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
|
||||
assert '<title>Python documentation</title>' in qhcp
|
||||
assert '<homePage>qthelp://org.sphinx.python/doc/index.html</homePage>' in qhcp
|
||||
assert '<startPage>qthelp://org.sphinx.python/doc/index.html</startPage>' in qhcp
|
||||
@@ -91,10 +91,10 @@ def test_qthelp_namespace(app, status, w
|
||||
# default namespace
|
||||
app.builder.build_all()
|
||||
|
||||
- qhp = (app.outdir / 'Python.qhp').text()
|
||||
+ qhp = (app.outdir / 'Python.qhp').read_text()
|
||||
assert '<namespace>org.sphinx.python</namespace>' in qhp
|
||||
|
||||
- qhcp = (app.outdir / 'Python.qhcp').text()
|
||||
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
|
||||
assert '<homePage>qthelp://org.sphinx.python/doc/index.html</homePage>' in qhcp
|
||||
assert '<startPage>qthelp://org.sphinx.python/doc/index.html</startPage>' in qhcp
|
||||
|
||||
@@ -102,10 +102,10 @@ def test_qthelp_namespace(app, status, w
|
||||
app.config.qthelp_namespace = 'org.sphinx-doc.sphinx'
|
||||
app.builder.build_all()
|
||||
|
||||
- qhp = (app.outdir / 'Python.qhp').text()
|
||||
+ qhp = (app.outdir / 'Python.qhp').read_text()
|
||||
assert '<namespace>org.sphinx-doc.sphinx</namespace>' in qhp
|
||||
|
||||
- qhcp = (app.outdir / 'Python.qhcp').text()
|
||||
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
|
||||
assert '<homePage>qthelp://org.sphinx-doc.sphinx/doc/index.html</homePage>' in qhcp
|
||||
assert '<startPage>qthelp://org.sphinx-doc.sphinx/doc/index.html</startPage>' in qhcp
|
||||
|
||||
@@ -115,10 +115,10 @@ def test_qthelp_title(app, status, warni
|
||||
# default title
|
||||
app.builder.build_all()
|
||||
|
||||
- qhp = (app.outdir / 'Python.qhp').text()
|
||||
+ qhp = (app.outdir / 'Python.qhp').read_text()
|
||||
assert '<section title="Python documentation" ref="index.html">' in qhp
|
||||
|
||||
- qhcp = (app.outdir / 'Python.qhcp').text()
|
||||
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
|
||||
assert '<title>Python documentation</title>' in qhcp
|
||||
|
||||
# give a title
|
||||
@@ -126,9 +126,9 @@ def test_qthelp_title(app, status, warni
|
||||
app.config.html_short_title = 'Sphinx <b>"short"</b> title'
|
||||
app.builder.build_all()
|
||||
|
||||
- qhp = (app.outdir / 'Python.qhp').text()
|
||||
+ qhp = (app.outdir / 'Python.qhp').read_text()
|
||||
assert ('<section title="Sphinx <b>"full"</b> title" ref="index.html">'
|
||||
in qhp)
|
||||
|
||||
- qhcp = (app.outdir / 'Python.qhcp').text()
|
||||
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
|
||||
assert '<title>Sphinx <b>"short"</b> title</title>' in qhcp
|
BIN
sphinxcontrib-qthelp-1.0.3.tar.gz
(Stored with Git LFS)
Normal file
BIN
sphinxcontrib-qthelp-1.0.3.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user