Version 2.1.2. Add a -doc subpackage.

This commit is contained in:
Jerry James 2022-01-07 08:46:17 -07:00
parent d965f29284
commit b3abe374d3
3 changed files with 29 additions and 24 deletions

View File

@ -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')

View File

@ -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 <loganjerry@gmail.com> - 2.1.2-1
- Version 2.1.2
- Add a -doc subpackage
* Tue Dec 14 2021 Jerry James <loganjerry@gmail.com> - 2.1.1-1
- Version 2.1.1

View File

@ -1 +1 @@
SHA512 (gmpy2-2.1.1.tar.gz) = 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709
SHA512 (gmpy2-2.1.2.tar.gz) = abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7