2020-09-02 07:04:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sphinxcontrib-fulltoc
|
|
|
|
#
|
2025-06-12 12:53:10 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-09-02 07:04:13 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-sphinxcontrib-fulltoc
|
|
|
|
Version: 1.2.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Include a full table of contents in your Sphinx HTML sidebar
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2025-06-12 12:53:10 +00:00
|
|
|
URL: https://sphinxcontrib-fulltoc.readthedocs.org
|
2020-09-02 07:04:13 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-fulltoc/sphinxcontrib-fulltoc-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pbr}
|
2025-06-12 12:53:10 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-09-02 07:04:13 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-12 12:53:10 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-09-02 07:04:13 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION docs
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
sphinxcontrib-fulltoc is an extension for the Sphinx_ documentation
|
|
|
|
system that changes the HTML output to include a more detailed table
|
|
|
|
of contents in the sidebar. By default Sphinx only shows the local
|
|
|
|
headers for the current page. With the extension installed, all of the
|
|
|
|
page titles are included, and the local headers for the current page
|
|
|
|
are also included in the appropriate place within the document.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n sphinxcontrib-fulltoc-%{version}
|
|
|
|
sed -i 's/version = subprocess.*/version = "%{version}"/' docs/source/conf.py
|
|
|
|
|
|
|
|
%build
|
2025-06-12 12:53:10 +00:00
|
|
|
%pyproject_wheel
|
2022-01-29 14:16:13 +00:00
|
|
|
#pushd docs
|
|
|
|
#LANG=C.UTF-8 READTHEDOCS=True PYTHONPATH=.. make html
|
|
|
|
#rm build/html/.buildinfo
|
|
|
|
#popd
|
2020-09-02 07:04:13 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-12 12:53:10 +00:00
|
|
|
%pyproject_install
|
2020-09-02 07:04:13 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%files %{python_files}
|
2025-06-12 12:53:10 +00:00
|
|
|
%dir %{python_sitelib}/sphinxcontrib
|
|
|
|
%pycache_only %dir %{python_sitelib}/sphinxcontrib/__pycache__
|
|
|
|
%{python_sitelib}/sphinxcontrib/fulltoc.py
|
|
|
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/fulltoc*
|
|
|
|
%{python_sitelib}/sphinxcontrib[-_]fulltoc-%{version}*-info
|
2025-06-12 13:17:01 +00:00
|
|
|
%{python_sitelib}/sphinxcontrib[-_]fulltoc-%{version}*-nspkg.pth
|
2020-09-02 07:04:13 +00:00
|
|
|
%license LICENSE
|
2022-01-29 14:16:13 +00:00
|
|
|
%doc ChangeLog README.rst
|
|
|
|
#docs/build/html
|
2020-09-02 07:04:13 +00:00
|
|
|
|
|
|
|
%changelog
|