14
0

4 Commits

2 changed files with 20 additions and 11 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Sep 18 01:55:03 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Correct BuildRequires for the test flavor.
- No longer skip a test.
-------------------------------------------------------------------
Mon Jun 16 06:12:24 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
-------------------------------------------------------------------
Sat Nov 23 11:35:46 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sphinx_rtd_theme
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -32,20 +32,19 @@ Summary: ReadTheDocs.org theme for Sphinx
License: Apache-2.0 AND MIT AND OFL-1.1
URL: https://github.com/snide/sphinx_rtd_theme/
Source: https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.6
Requires: python-Sphinx >= 6
Requires: python-docutils
Requires: python-sphinxcontrib-jquery >= 4.0
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module readthedocs-sphinx-ext}
BuildRequires: %{python_module sphinxcontrib-jquery >= 4.0}
BuildRequires: %{python_module sphinx_rtd_theme = %{version}}
%endif
%python_subpackages
@@ -67,18 +66,17 @@ cp -p sphinx_rtd_theme/static/js/theme.js build/lib/%{srcname}/static/js
sed -i "/'build_py'/d" setup.py
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
# https://github.com/readthedocs/sphinx_rtd_theme/issues/1558
%pytest -k "not test_basic"
%pytest
%endif
%if !%{with test}
@@ -86,7 +84,7 @@ sed -i "/'build_py'/d" setup.py
%license LICENSE OFL-License.txt Apache-License-2.0.txt
%doc README.rst
%{python_sitelib}/sphinx_rtd_theme
%{python_sitelib}/sphinx_rtd_theme-%{version}*-info
%{python_sitelib}/sphinx_rtd_theme-%{version}.dist-info
%endif
%changelog