| |
@@ -5,8 +5,8 @@
|
| |
%endif
|
| |
|
| |
Name: python-mpmath
|
| |
- Version: 1.0.0
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 1.1.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A pure Python library for multiprecision floating-point arithmetic
|
| |
License: BSD
|
| |
URL: http://mpmath.org
|
| |
@@ -15,8 +15,6 @@
|
| |
|
| |
# Switch to 'traditional' theme in RHEL since 'classic' isn't available
|
| |
Patch0: python-mpmath-1.0.0-sphinx.patch
|
| |
- # https://github.com/fredrik-johansson/mpmath/pull/398
|
| |
- Patch1: 0001-Fix-PEP-479-compatibility-python-3.7.patch
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
@@ -25,9 +23,11 @@
|
| |
BuildRequires: dvipng
|
| |
BuildRequires: python2-sphinx
|
| |
BuildRequires: tex(latex)
|
| |
+ BuildRequires: python2-pytest
|
| |
|
| |
%if 0%{?with_python3}
|
| |
BuildRequires: python3-devel
|
| |
+ BuildRequires: python3-pytest
|
| |
%endif
|
| |
|
| |
%global _description\
|
| |
@@ -44,7 +44,9 @@
|
| |
|
| |
%package -n python2-mpmath
|
| |
Summary: %summary
|
| |
+ %if 0%{?fedora} || 0%{?rhel} > 7
|
| |
Recommends: python2-matplotlib
|
| |
+ %endif
|
| |
%{?python_provide:%python_provide python2-mpmath}
|
| |
|
| |
%description -n python2-mpmath %_description
|
| |
@@ -52,7 +54,9 @@
|
| |
%if 0%{?with_python3}
|
| |
%package -n python3-mpmath
|
| |
Summary: A pure Python library for multiprecision floating-point arithmetic
|
| |
+ %if 0%{?fedora} || 0%{?rhel} > 7
|
| |
Recommends: python3-matplotlib
|
| |
+ %endif
|
| |
%{?python_provide:%python_provide python3-mpmath}
|
| |
|
| |
%description -n python3-mpmath
|
| |
@@ -113,11 +117,10 @@
|
| |
%endif # with _python3
|
| |
|
| |
%check
|
| |
- export PYTHONPATH=`pwd`/build/lib
|
| |
cd build/lib/mpmath/tests/
|
| |
- %{__python2} runtests.py
|
| |
+ py.test-2
|
| |
%if 0%{?with_python3}
|
| |
- %{__python3} runtests.py
|
| |
+ py.test-3
|
| |
%endif # with _python3
|
| |
|
| |
%files -n python2-mpmath
|
| |
@@ -136,6 +139,9 @@
|
| |
%doc doc/build/*
|
| |
|
| |
%changelog
|
| |
+ * Mon Feb 18 2019 Yatin Karel <ykarel@redhat.com> - 1.1.0-1
|
| |
+ - Update to 1.1.0.
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
Remove the patch that's already included in 1.1.0
release.
Also use Recommends only on Fedora and RedHat > 7.