File python-sphinxcontrib-fulltoc.spec of Package python-sphinxcontrib-fulltoc
#
# spec file for package python-sphinxcontrib-fulltoc
#
# Copyright (c) 2025 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/
#
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
URL: https://sphinxcontrib-fulltoc.readthedocs.org
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-fulltoc/sphinxcontrib-fulltoc-%{version}.tar.gz
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
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
%pyproject_wheel
#pushd docs
#LANG=C.UTF-8 READTHEDOCS=True PYTHONPATH=.. make html
#rm build/html/.buildinfo
#popd
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%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
%{python_sitelib}/sphinxcontrib[-_]fulltoc-%{version}*-nspkg.pth
%license LICENSE
%doc ChangeLog README.rst
#docs/build/html
%changelog