|
 |
36ae2e |
Name: python-mpmath
|
|
 |
36ae2e |
Version: 1.2.0
|
|
 |
36ae2e |
Release: 1%{?dist}
|
|
 |
36ae2e |
Summary: A pure Python library for multiprecision floating-point arithmetic
|
|
 |
36ae2e |
License: BSD
|
|
 |
36ae2e |
URL: https://mpmath.org
|
|
 |
36ae2e |
# Source code
|
|
 |
36ae2e |
Source0: https://github.com/fredrik-johansson/mpmath/archive/%{version}/%{name}-%{version}.tar.gz
|
|
 |
36ae2e |
|
|
 |
36ae2e |
# Switch to 'traditional' theme in RHEL since 'classic' isn't available
|
|
 |
36ae2e |
Patch0: python-mpmath-1.0.0-sphinx.patch
|
|
 |
36ae2e |
|
|
 |
36ae2e |
BuildRequires: python3-devel
|
|
 |
36ae2e |
BuildRequires: python3-pip
|
|
 |
36ae2e |
BuildRequires: python3-setuptools
|
|
 |
36ae2e |
BuildRequires: python3-setuptools_scm
|
|
 |
36ae2e |
BuildRequires: python3-pytest
|
|
 |
36ae2e |
BuildRequires: python3-sphinx
|
|
 |
36ae2e |
BuildRequires: xorg-x11-server-Xvfb
|
|
 |
36ae2e |
|
|
 |
36ae2e |
# For building documentation
|
|
 |
36ae2e |
BuildRequires: dvipng
|
|
 |
36ae2e |
BuildRequires: tex(latex)
|
|
 |
36ae2e |
|
|
 |
36ae2e |
BuildArch: noarch
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%global _description %{expand:
|
|
 |
36ae2e |
Mpmath is a pure-Python library for multiprecision floating-point
|
|
 |
36ae2e |
arithmetic. It provides an extensive set of transcendental functions,
|
|
 |
36ae2e |
unlimited exponent sizes, complex numbers, interval arithmetic,
|
|
 |
36ae2e |
numerical integration and differentiation, root-finding, linear
|
|
 |
36ae2e |
algebra, and much more. Almost any calculation can be performed just
|
|
 |
36ae2e |
as well at 10-digit or 1000-digit precision, and in many cases mpmath
|
|
 |
36ae2e |
implements asymptotically fast algorithms that scale well for
|
|
 |
36ae2e |
extremely high precision work. If available, mpmath will (optionally)
|
|
 |
36ae2e |
use gmpy to speed up high precision operations.}
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%description %_description
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%package -n python3-mpmath
|
|
 |
36ae2e |
Summary: A pure Python library for multiprecision floating-point arithmetic
|
|
 |
36ae2e |
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
 |
36ae2e |
Recommends: python3-matplotlib
|
|
 |
36ae2e |
%endif
|
|
 |
36ae2e |
%{?python_provide:%python_provide python3-mpmath}
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%description -n python3-mpmath %_description
|
|
 |
36ae2e |
|
|
 |
36ae2e |
If you require plotting capabilities in mpmath, install python3-matplotlib.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%package doc
|
|
 |
36ae2e |
Summary: HTML documentation for %{name}
|
|
 |
36ae2e |
Requires: python3-mpmath = %{version}-%{release}
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%description doc
|
|
 |
36ae2e |
This package contains the HTML documentation for %{name}.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%prep
|
|
 |
36ae2e |
%setup -q -n mpmath-%{version}
|
|
 |
36ae2e |
%if 0%{?rhel} == 6 || 0%{?rhel} == 7
|
|
 |
36ae2e |
%patch0 -p1 -b .sphinx
|
|
 |
36ae2e |
%endif
|
|
 |
36ae2e |
|
|
 |
36ae2e |
# Convert line encodings
|
|
 |
36ae2e |
for doc in CHANGES LICENSE README.rst TODO mpmath/tests/runtests.py; do
|
|
 |
36ae2e |
sed "s|\r||g" $doc > $doc.new && \
|
|
 |
36ae2e |
touch -r $doc $doc.new && \
|
|
 |
36ae2e |
mv $doc.new $doc
|
|
 |
36ae2e |
done
|
|
 |
36ae2e |
find doc -name *.txt -exec sed -i "s|\r||g" {} \;
|
|
 |
36ae2e |
|
|
 |
36ae2e |
shebangs="mpmath/matrices/eigen.py mpmath/matrices/eigen_symmetric.py mpmath/tests/runtests.py mpmath/tests/test_eigen.py mpmath/tests/test_eigen_symmetric.py mpmath/tests/test_levin.py"
|
|
 |
36ae2e |
# Get rid of unnecessary shebangs
|
|
 |
36ae2e |
for lib in $shebangs; do
|
|
 |
36ae2e |
sed '/^#!.*/d; 1q' $lib > $lib.new && \
|
|
 |
36ae2e |
touch -r $lib $lib.new && \
|
|
 |
36ae2e |
mv $lib.new $lib
|
|
 |
36ae2e |
done
|
|
 |
36ae2e |
|
|
 |
36ae2e |
sed -i -r 's/use_scm_version=True/version="%{version}"/' setup.py
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%build
|
|
 |
36ae2e |
%py3_build
|
|
 |
36ae2e |
|
|
 |
36ae2e |
# Build documentation
|
|
 |
36ae2e |
cd doc
|
|
 |
36ae2e |
%{__python3} build.py
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%install
|
|
 |
36ae2e |
%py3_install
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%check
|
|
 |
36ae2e |
cd build/lib/mpmath/tests/
|
|
 |
36ae2e |
xvfb-run -a pytest-3 -v
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%files -n python3-mpmath
|
|
 |
36ae2e |
%license LICENSE
|
|
 |
36ae2e |
%doc CHANGES README.rst TODO
|
|
 |
36ae2e |
%{python3_sitelib}/mpmath/
|
|
 |
36ae2e |
%{python3_sitelib}/mpmath-%{version}-*.egg-info
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%files doc
|
|
 |
36ae2e |
%doc doc/build/*
|
|
 |
36ae2e |
|
|
 |
36ae2e |
%changelog
|
|
 |
36ae2e |
* Tue Feb 2 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.0-1
|
|
 |
36ae2e |
- Update to latest version (#1923815)
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-8
|
|
 |
36ae2e |
- Rebuilt for Python 3.9
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6
|
|
 |
36ae2e |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-5
|
|
 |
36ae2e |
- Rebuilt for Python 3.8
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed Mar 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
|
|
 |
36ae2e |
- Subpackage python2-mpmath has been removed
|
|
 |
36ae2e |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Mon Mar 11 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.0-2
|
|
 |
36ae2e |
- Build docs using python3-sphinx
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Mon Feb 18 2019 Yatin Karel <ykarel@redhat.com> - 1.1.0-1
|
|
 |
36ae2e |
- Update to 1.1.0.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
|
|
 |
36ae2e |
- Rebuilt for Python 3.7
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Fri May 04 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.0.0-1
|
|
 |
36ae2e |
- Update to 1.0.0.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-12
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.19-11
|
|
 |
36ae2e |
- Update Python 2 dependency declarations to new packaging standards
|
|
 |
36ae2e |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.19-10
|
|
 |
36ae2e |
- Python 2 binary package renamed to python2-mpmath
|
|
 |
36ae2e |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-9
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-8
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.19-7
|
|
 |
36ae2e |
- Rebuild for Python 3.6
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-6
|
|
 |
36ae2e |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.19-5
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-4
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-3
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Dec 04 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.19-2
|
|
 |
36ae2e |
- Patch for BZ #1127796.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Jun 24 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.19-1
|
|
 |
36ae2e |
- Update to 0.19.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18-3
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.18-2
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed Jan 01 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.18-1
|
|
 |
36ae2e |
- Update to 0.18.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Aug 06 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.17-8
|
|
 |
36ae2e |
- Add python3 package.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-7
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-6
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Mon Jul 23 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.17-5
|
|
 |
36ae2e |
- Fix %%check phase.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-3
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sun Feb 06 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.17-1
|
|
 |
36ae2e |
- Update to 0.17.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Sun Sep 26 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.16-1
|
|
 |
36ae2e |
- Update to 0.16.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.15-2
|
|
 |
36ae2e |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Mon Jun 07 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.15-1
|
|
 |
36ae2e |
- Update to 0.15.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Apr 27 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.14-1
|
|
 |
36ae2e |
- Update to 0.14.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Oct 06 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.13-5
|
|
 |
36ae2e |
- Removed BR: python-matplotlib, since it didn't actually help in the missing
|
|
 |
36ae2e |
image problem.
|
|
 |
36ae2e |
- Added versioned require in -doc.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Oct 06 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.13-4
|
|
 |
36ae2e |
- Replaced R: python-matplotlib with a comment in %%description.
|
|
 |
36ae2e |
- Added missing BR: python-matplotlib.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Tue Oct 06 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.13-3
|
|
 |
36ae2e |
- Added missing BR: dvipng.
|
|
 |
36ae2e |
- Added %%check phase.
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed Sep 23 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.13-2
|
|
 |
36ae2e |
- Add missing BR: tex(latex).
|
|
 |
36ae2e |
|
|
 |
36ae2e |
* Wed Sep 23 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.13-1
|
|
 |
36ae2e |
- First release.
|