Fix build failure caused by python-sphinx update to 7.0.1
This commit is contained in:
parent
ca38562306
commit
ea0c52966b
@ -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 <yao_xin001@hoperun.com> - 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user