14
0

2 Commits

2 changed files with 23 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Jun 16 06:17:27 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyroject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Thu Mar 20 14:10:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Skip test failing with Sphinx 8.2
-------------------------------------------------------------------
Fri Apr 21 12:36:56 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-sphinxcontrib-jsmath
#
# Copyright (c) 2023 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
@@ -17,7 +17,6 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
@@ -35,7 +34,9 @@ URL: http://sphinx-doc.org/
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-jsmath/sphinxcontrib-jsmath-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/sphinx-doc/sphinxcontrib-jsmath/commit/3297b27177ab4862d1b2408a2db66235397fe212 Fix #9361: RemovedInSphinx50Warning on testing
Patch0: sphinx5.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx
@@ -56,24 +57,28 @@ via JavaScript.
%autopatch -p1
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%pytest
# test_disabled_when_equations_not_found fails with Sphinx 8.2 - https://github.com/sphinx-doc/sphinx/issues/13442
%pytest -k "not test_disabled_when_equations_not_found"
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst CHANGES
%license LICENSE
%{python_sitelib}/*
%dir %{python_sitelib}/sphinxcontrib
%{python_sitelib}/sphinxcontrib/jsmath
%{python_sitelib}/sphinxcontrib_jsmath-%{version}-py*-nspkg.pth
%{python_sitelib}/sphinxcontrib_jsmath-%{version}.dist-info
%endif
%changelog