14
0

5 Commits

2 changed files with 4 additions and 14 deletions

View File

@@ -1,9 +1,3 @@
-------------------------------------------------------------------
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> Thu Mar 20 14:10:37 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -17,6 +17,7 @@
%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
@@ -34,9 +35,7 @@ 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
@@ -57,11 +56,11 @@ via JavaScript.
%autopatch -p1 %autopatch -p1
%build %build
%pyproject_wheel %python_build
%install %install
%if !%{with test} %if !%{with test}
%pyproject_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif %endif
@@ -75,10 +74,7 @@ via JavaScript.
%files %{python_files} %files %{python_files}
%doc README.rst CHANGES %doc README.rst CHANGES
%license LICENSE %license LICENSE
%dir %{python_sitelib}/sphinxcontrib %{python_sitelib}/*
%{python_sitelib}/sphinxcontrib/jsmath
%{python_sitelib}/sphinxcontrib_jsmath-%{version}-py*-nspkg.pth
%{python_sitelib}/sphinxcontrib_jsmath-%{version}.dist-info
%endif %endif
%changelog %changelog