From 4a395b85decea8bab6d6c76033068a2c762c882821ec729b076f0c126ac0f86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 12:53:10 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-fulltoc?expand=0&rev=4 --- python-sphinxcontrib-fulltoc.changes | 5 +++++ python-sphinxcontrib-fulltoc.spec | 17 +++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/python-sphinxcontrib-fulltoc.changes b/python-sphinxcontrib-fulltoc.changes index be16117..e9e47f6 100644 --- a/python-sphinxcontrib-fulltoc.changes +++ b/python-sphinxcontrib-fulltoc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 12:49:39 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Jan 29 14:15:55 UTC 2022 - Sebastian Wagner diff --git a/python-sphinxcontrib-fulltoc.spec b/python-sphinxcontrib-fulltoc.spec index 36fb40c..d9552a6 100644 --- a/python-sphinxcontrib-fulltoc.spec +++ b/python-sphinxcontrib-fulltoc.spec @@ -1,7 +1,7 @@ # # spec file for package python-sphinxcontrib-fulltoc # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -16,17 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} 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: http://sphinxcontrib-fulltoc.readthedocs.org +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 @@ -48,18 +49,22 @@ are also included in the appropriate place within the document. sed -i 's/version = subprocess.*/version = "%{version}"/' docs/source/conf.py %build -%python_build +%pyproject_wheel #pushd docs #LANG=C.UTF-8 READTHEDOCS=True PYTHONPATH=.. make html #rm build/html/.buildinfo #popd %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%{python_sitelib}/* +%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 %license LICENSE %doc ChangeLog README.rst #docs/build/html From 004ed3c34ec4d74fdb2d6e7f5352aa2e089402cdb68ac0554d738572d45e8368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 13:17:01 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-fulltoc?expand=0&rev=5 --- python-sphinxcontrib-fulltoc.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-sphinxcontrib-fulltoc.spec b/python-sphinxcontrib-fulltoc.spec index d9552a6..25e07ae 100644 --- a/python-sphinxcontrib-fulltoc.spec +++ b/python-sphinxcontrib-fulltoc.spec @@ -65,6 +65,7 @@ sed -i 's/version = subprocess.*/version = "%{version}"/' docs/source/conf.py %{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