Upgrade package to version 1.2.1

This commit is contained in:
Gzx1999 2022-09-28 19:56:45 +08:00
parent 8a46c30fec
commit ef56cea855
3 changed files with 68 additions and 54 deletions

BIN
mpmath-1.2.1.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,59 +1,47 @@
%global _empty_manifest_terminate_build 0
Name: python-mpmath Name: python-mpmath
Version: 1.2.0 Version: 1.2.1
Release: 2 Release: 1
Summary: A pure Python library for multiprecision floating-point arithmetic Summary: Python library for arbitrary-precision floating-point arithmetic
License: BSD-3-Clause License: BSD-3-Clause
URL: https://mpmath.org URL: http://github.com/fredrik-johansson/mpmath
# Source code Source0: https://files.pythonhosted.org/packages/95/ba/7384cb4db4ed474d4582944053549e02ec25da630810e4a23454bc9fa617/mpmath-1.2.1.tar.gz
Source0: https://github.com/fredrik-johansson/mpmath/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch
%description
A Python library for arbitrary-precision floating-point arithmetic.
%package -n python3-mpmath
Summary: Python library for arbitrary-precision floating-point arithmetic
Provides: python-mpmath
Recommends: python3-matplotlib
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm BuildRequires: python3-setuptools_scm
BuildRequires: python3-pytest BuildRequires: python3-pytest
BuildRequires: python3-sphinx BuildRequires: python3-pytest-cov
BuildRequires: python3-pycodestyle
BuildRequires: python3-codecov
BuildRequires: python3-wheel
BuildRequires: xorg-x11-server-Xvfb BuildRequires: xorg-x11-server-Xvfb
%description -n python3-mpmath
# For building documentation A Python library for arbitrary-precision floating-point arithmetic.
BuildRequires: dvipng
BuildRequires: tex(latex)
BuildArch: noarch
%global _description %{expand:
Mpmath is a pure-Python library for multiprecision floating-point
arithmetic. It provides an extensive set of transcendental functions,
unlimited exponent sizes, complex numbers, interval arithmetic,
numerical integration and differentiation, root-finding, linear
algebra, and much more. Almost any calculation can be performed just
as well at 10-digit or 1000-digit precision, and in many cases mpmath
implements asymptotically fast algorithms that scale well for
extremely high precision work. If available, mpmath will (optionally)
use gmpy to speed up high precision operations.}
%description %_description
%package -n python3-mpmath
Summary: A pure Python library for multiprecision floating-point arithmetic
Recommends: python3-matplotlib
%{?python_provide:%python_provide python3-mpmath}
%description -n python3-mpmath %_description
If you require plotting capabilities in mpmath, install python3-matplotlib. If you require plotting capabilities in mpmath, install python3-matplotlib.
%package help
%package doc Summary: Development documents and examples for mpmath
Summary: HTML documentation for %{name} Provides: python3-mpmath-doc
Requires: python3-mpmath = %{version}-%{release} BuildRequires: python3-sphinx
BuildRequires: dvipng
%description doc BuildRequires: tex(latex)
This package contains the HTML documentation for %{name}. %description help
A Python library for arbitrary-precision floating-point arithmetic.
%prep %prep
%setup -q -n mpmath-%{version} %autosetup -n mpmath-%{version}
# 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
@ -82,21 +70,47 @@ cd doc
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check %check
cd build/lib/mpmath/tests/ cd build/lib/mpmath/tests/
xvfb-run -a pytest-3 -v xvfb-run -a pytest-3 -v
%files -n python3-mpmath %files -n python3-mpmath -f filelist.lst
%license LICENSE %dir %{python3_sitelib}/*
%doc CHANGES README.rst TODO
%{python3_sitelib}/mpmath/
%{python3_sitelib}/mpmath-%{version}-*.egg-info
%files doc %files help -f doclist.lst
%doc doc/build/* %{_docdir}/*
%changelog %changelog
* Wed Sep 28 2022 guozhengxin <guozhengxin@kylinos.cn> - 1.2.1-1
- Upgrade package to version 1.2.1
* Tue May 10 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 1.2.0-2 * Tue May 10 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 1.2.0-2
- License compliance rectification - License compliance rectification