diff --git a/python-peppercorn.changes b/python-peppercorn.changes index dcb6212..a4d3711 100644 --- a/python-peppercorn.changes +++ b/python-peppercorn.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 11 20:13:50 UTC 2023 - Ben Greiner + +- Replace build_sphinx setuptools hook with direct sphinx-build + call -- fixes boo#1211051 + ------------------------------------------------------------------- Mon May 4 12:21:19 UTC 2020 - Paolo Stivanin diff --git a/python-peppercorn.spec b/python-peppercorn.spec index 7baf979..986e045 100644 --- a/python-peppercorn.spec +++ b/python-peppercorn.spec @@ -1,7 +1,7 @@ # # spec file for package python-peppercorn # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2017 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,16 +17,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-peppercorn Version: 0.6 Release: 0 Summary: Pyramid exceptions logger License: BSD-4-Clause AND ZPL-2.1 AND MIT URL: https://docs.pylonsproject.org/projects/peppercorn/en/latest/ +# SourceRepostory: https://github.com/Pylons/peppercorn Source: https://files.pythonhosted.org/packages/source/p/peppercorn/peppercorn-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pylons-sphinx-themes} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # Documentation requirement @@ -49,20 +51,22 @@ This package contains documentation for %{name}. %setup -q -n peppercorn-%{version} %build -%python_build -python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo +%pyproject_wheel +PYTHONPATH=":x" sphinx-build -b html docs/ build/sphinx/html/ +rm -r build/sphinx/html/{.buildinfo,.doctrees} %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m unittest discover -v +%pyunittest -v %files %{python_files} %license LICENSE.txt %doc CHANGES.rst CONTRIBUTORS.txt COPYRIGHT.txt README.rst contributing.md -%{python_sitelib}/* +%{python_sitelib}/peppercorn-%{version}.dist-info +%{python_sitelib}/peppercorn %files -n %{name}-doc %doc build/sphinx/html