From 70c284eb228d822c6342a272437b3150fac59022 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Feb 02 2021 08:20:12 +0000 Subject: Spec file modernization --- diff --git a/python-mpmath.spec b/python-mpmath.spec index 2283e9a..8aab40a 100644 --- a/python-mpmath.spec +++ b/python-mpmath.spec @@ -3,33 +3,34 @@ Version: 1.1.0 Release: 10%{?dist} Summary: A pure Python library for multiprecision floating-point arithmetic License: BSD -URL: http://mpmath.org +URL: https://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: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-sphinx +BuildRequires: xorg-x11-server-Xvfb # For building documentation BuildRequires: dvipng BuildRequires: tex(latex) -BuildRequires: python3-devel -BuildRequires: python3-pytest -BuildRequires: python3-sphinx -BuildRequires: xorg-x11-server-Xvfb +BuildArch: noarch -%global _description\ -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. +%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 @@ -87,10 +88,11 @@ cd doc %check cd build/lib/mpmath/tests/ -xvfb-run -a py.test-3 +xvfb-run -a pytest-3 -v %files -n python3-mpmath -%doc CHANGES LICENSE README.rst TODO +%license LICENSE +%doc CHANGES README.rst TODO %{python3_sitelib}/mpmath/ %{python3_sitelib}/mpmath-%{version}-*.egg-info