|
|
@@ -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
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
@@ -17,7 +17,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
%define skip_python2 1
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without 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
|
|
|
|
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
|
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/sphinx-doc/sphinxcontrib-jsmath/commit/3297b27177ab4862d1b2408a2db66235397fe212 Fix #9361: RemovedInSphinx50Warning on testing
|
|
|
|
Patch0: sphinx5.patch
|
|
|
|
Patch0: sphinx5.patch
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-Sphinx
|
|
|
|
Requires: python-Sphinx
|
|
|
@@ -56,24 +57,28 @@ via JavaScript.
|
|
|
|
%autopatch -p1
|
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%if !%{with test}
|
|
|
|
%if !%{with test}
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with test}
|
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
%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
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if !%{with test}
|
|
|
|
%if !%{with test}
|
|
|
|
%files %{python_files}
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst CHANGES
|
|
|
|
%doc README.rst CHANGES
|
|
|
|
%license LICENSE
|
|
|
|
%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
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|