From b3abe374d3e88b0a2c65a2b61728245f5c3c9fbf Mon Sep 17 00:00:00 2001 From: Jerry James Date: Fri, 7 Jan 2022 08:46:17 -0700 Subject: [PATCH] Version 2.1.2. Add a -doc subpackage. --- python-gmpy2.rpmlintrc | 8 -------- python-gmpy2.spec | 43 +++++++++++++++++++++++++++--------------- sources | 2 +- 3 files changed, 29 insertions(+), 24 deletions(-) delete mode 100644 python-gmpy2.rpmlintrc diff --git a/python-gmpy2.rpmlintrc b/python-gmpy2.rpmlintrc deleted file mode 100644 index 2cc9e6f..0000000 --- a/python-gmpy2.rpmlintrc +++ /dev/null @@ -1,8 +0,0 @@ -# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON -# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors - -# The dictionary is missing some technical terms -addFilter(r'W: spelling-error .* gmpy') - -# This package really is a devel package -addFilter(r'W: devel-file-in-non-devel-package') diff --git a/python-gmpy2.spec b/python-gmpy2.spec index 40771a5..65580ce 100644 --- a/python-gmpy2.spec +++ b/python-gmpy2.spec @@ -1,7 +1,7 @@ %global srcname gmpy2 Name: python-%{srcname} -Version: 2.1.1 +Version: 2.1.2 Release: 1%{?dist} Summary: Python interface to GMP, MPFR, and MPC @@ -21,25 +21,32 @@ BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist sphinx} BuildRequires: %{py3_dist wheel} -%global common_desc \ -This package contains a C-coded Python extension module that supports \ -multiple-precision arithmetic. It is the successor to the original \ -gmpy module. The gmpy module only supported the GMP multiple-precision \ -library. Gmpy2 adds support for the MPFR (correctly rounded real \ -floating-point arithmetic) and MPC (correctly rounded complex \ -floating-point arithmetic) libraries. It also updates the API and \ -naming conventions to be more consistent and support the additional \ -functionality. +%global _docdir_fmt %{name} -%description -%{common_desc} +%global common_desc %{expand: +This package contains a C-coded Python extension module that supports +multiple-precision arithmetic. It is the successor to the original +gmpy module. The gmpy module only supported the GMP multiple-precision +library. Gmpy2 adds support for the MPFR (correctly rounded real +floating-point arithmetic) and MPC (correctly rounded complex +floating-point arithmetic) libraries. It also updates the API and +naming conventions to be more consistent and support the additional +functionality.} + +%description %common_desc %package -n python3-%{srcname} Summary: Python 3 interface to GMP, MPFR, and MPC + +%description -n python3-%{srcname} %common_desc + +%package doc +Summary: Documentation for gmpy2 +BuildArch: noarch Provides: bundled(jquery) -%description -n python3-%{srcname} -%{common_desc} +%description doc +This package contains API documentation for gmpy2. %prep %autosetup -n %{srcname}-%{version} @@ -66,10 +73,16 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} test/runtests.py %files -n python3-%{srcname} %license COPYING COPYING.LESSER -%doc docs/_build/html/* %{python3_sitearch}/%{srcname}* +%files doc +%doc docs/_build/html/* + %changelog +* Fri Jan 7 2022 Jerry James - 2.1.2-1 +- Version 2.1.2 +- Add a -doc subpackage + * Tue Dec 14 2021 Jerry James - 2.1.1-1 - Version 2.1.1 diff --git a/sources b/sources index 533e3a7..eddb45c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gmpy2-2.1.1.tar.gz) = 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709 +SHA512 (gmpy2-2.1.2.tar.gz) = abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7