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
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-mpmath
|
Name: python-mpmath
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Python library for arbitrary-precision floating-point arithmetic
|
Summary: Python library for arbitrary-precision floating-point arithmetic
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: http://github.com/fredrik-johansson/mpmath
|
URL: http://github.com/fredrik-johansson/mpmath
|
||||||
Source0: https://github.com/fredrik-johansson/mpmath/archive/%{version}/mpmath-%{version}.tar.gz
|
Source0: https://github.com/fredrik-johansson/mpmath/archive/%{version}/mpmath-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A Python library for arbitrary-precision floating-point arithmetic.
|
A Python library for arbitrary-precision floating-point arithmetic.
|
||||||
|
|
||||||
@ -27,6 +25,7 @@ BuildRequires: python3-pycodestyle
|
|||||||
BuildRequires: python3-codecov
|
BuildRequires: python3-codecov
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: xorg-x11-server-Xvfb
|
BuildRequires: xorg-x11-server-Xvfb
|
||||||
|
BuildRequires: python3-mpmath
|
||||||
%description -n python3-mpmath
|
%description -n python3-mpmath
|
||||||
A Python library for arbitrary-precision floating-point arithmetic.
|
A Python library for arbitrary-precision floating-point arithmetic.
|
||||||
If you require plotting capabilities in mpmath, install python3-matplotlib.
|
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.
|
A Python library for arbitrary-precision floating-point arithmetic.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n mpmath-%{version}
|
%autosetup -n mpmath-%{version} -p1
|
||||||
|
|
||||||
# Convert line encodings
|
# Convert line encodings
|
||||||
for doc in CHANGES LICENSE README.rst TODO mpmath/tests/runtests.py; do
|
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
|
%py3_build
|
||||||
|
|
||||||
# Build documentation
|
# 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
|
make -C build/sphinx/latex all-pdf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -112,6 +114,9 @@ xvfb-run -a pytest-3 -v
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Apr 26 2023 wangkai <13474090681@163.com> - 1.3.0-1
|
||||||
- Upgrade package to version 1.3.0
|
- Upgrade package to version 1.3.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user