diff --git a/mpmath-polynomials.patch b/mpmath-polynomials.patch deleted file mode 100644 index 1ed6beb..0000000 --- a/mpmath-polynomials.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- mpmath/calculus/polynomials.py.orig 2014-06-10 08:06:51.000000000 -0600 -+++ mpmath/calculus/polynomials.py 2014-12-03 20:00:00.000000000 -0700 -@@ -157,6 +157,7 @@ def polyroots(ctx, coeffs, maxsteps=50, - return [] - - tol = +ctx.eps -+ orig = ctx.prec - with ctx.extraprec(extraprec): - deg = len(coeffs) - 1 - # Must be monic diff --git a/python-mpmath-1.0.0-sphinx.patch b/python-mpmath-1.0.0-sphinx.patch new file mode 100644 index 0000000..cd493cb --- /dev/null +++ b/python-mpmath-1.0.0-sphinx.patch @@ -0,0 +1,12 @@ +diff -up mpmath-1.0.0/doc/source/conf.py.sphinx mpmath-1.0.0/doc/source/conf.py +--- mpmath-1.0.0/doc/source/conf.py.sphinx 2017-09-27 16:59:02.000000000 +0200 ++++ mpmath-1.0.0/doc/source/conf.py 2018-05-05 12:03:22.313112845 +0200 +@@ -76,7 +76,7 @@ pygments_style = 'sphinx' + # ----------------------- + + # The "theme" that the HTML output should use. +-html_theme = 'classic' ++html_theme = 'traditional' + + # Add any paths that contain custom static files (such as style sheets) here, + # relative to this directory. They are copied after the builtin static files, diff --git a/python-mpmath.spec b/python-mpmath.spec index 7a8a945..eebe2db 100644 --- a/python-mpmath.spec +++ b/python-mpmath.spec @@ -14,6 +14,9 @@ URL: http://mpmath.org # Source code Source0: https://github.com/fredrik-johansson/mpmath/archive/%{version}/%{name}-%{version}.tar.gz +# Switch to 'traditional' theme in RHEL since 'classic' isn't available +Patch0: python-mpmath-1.0.0-sphinx.patch + BuildArch: noarch BuildRequires: python2-devel @@ -76,6 +79,10 @@ This package contains the HTML documentation for %{name}. %prep %setup -q -n mpmath-%{version} +%if 0%{?rhel} == 6 || 0%{?rhel} == 7 +%patch0 -p1 -b .sphinx +%endif + # Convert line encodings for doc in CHANGES LICENSE README.rst TODO mpmath/tests/runtests.py; do sed "s|\r||g" $doc > $doc.new && \