From ea0c52966bd9836772d44704b9040d2db5e94cb0 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Wed, 2 Aug 2023 11:18:19 +0800 Subject: [PATCH] Fix build failure caused by python-sphinx update to 7.0.1 --- python-mpmath.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/python-mpmath.spec b/python-mpmath.spec index 2530c66..9d423d4 100644 --- a/python-mpmath.spec +++ b/python-mpmath.spec @@ -1,15 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-mpmath Version: 1.3.0 -Release: 1 +Release: 2 Summary: Python library for arbitrary-precision floating-point arithmetic License: BSD-3-Clause URL: http://github.com/fredrik-johansson/mpmath Source0: https://github.com/fredrik-johansson/mpmath/archive/%{version}/mpmath-%{version}.tar.gz BuildArch: noarch - - %description A Python library for arbitrary-precision floating-point arithmetic. @@ -27,6 +25,7 @@ BuildRequires: python3-pycodestyle BuildRequires: python3-codecov BuildRequires: python3-wheel BuildRequires: xorg-x11-server-Xvfb +BuildRequires: python3-mpmath %description -n python3-mpmath A Python library for arbitrary-precision floating-point arithmetic. If you require plotting capabilities in mpmath, install python3-matplotlib. @@ -45,7 +44,7 @@ BuildRequires: texlive-collection-fontsrecommended A Python library for arbitrary-precision floating-point arithmetic. %prep -%autosetup -n mpmath-%{version} +%autosetup -n mpmath-%{version} -p1 # Convert line encodings for doc in CHANGES LICENSE README.rst TODO mpmath/tests/runtests.py; do @@ -69,7 +68,10 @@ sed -i -r 's/use_scm_version=True/version="%{version}"/' setup.py %py3_build # Build documentation -%{__python3} setup.py build_sphinx -c docs -b html,latex +# sphinx's setuptools integration is deprecated since v5.0 +# https://github.com/mpmath/mpmath/commit/52a6a70d3c3979ccee48d9c4432579f1609be508 +sphinx-build --color -W --keep-going -b html docs build/sphinx/html +sphinx-build --color -W --keep-going -b latex docs build/sphinx/latex make -C build/sphinx/latex all-pdf %install @@ -112,6 +114,9 @@ xvfb-run -a pytest-3 -v %{_docdir}/* %changelog +* Wed Aug 02 2023 yaoxin - 1.3.0-2 +- Fix build failure caused by python-sphinx update to 7.0.1 + * Wed Apr 26 2023 wangkai <13474090681@163.com> - 1.3.0-1 - Upgrade package to version 1.3.0