From db4970851a9f93df1938205d8dda12b10a662f2f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Mon, 1 Jan 2024 10:41:12 -0500 Subject: [PATCH] =?UTF-8?q?Use=20the=20upstream=20description=20text=20(an?= =?UTF-8?q?d=20don=E2=80=99t=20write=20it=20twice)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-numpydoc.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/python-numpydoc.spec b/python-numpydoc.spec index 9676b23..6432ac4 100644 --- a/python-numpydoc.spec +++ b/python-numpydoc.spec @@ -13,17 +13,18 @@ BuildArch: noarch BuildRequires: python3-devel -%description -Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings -following the NumPy/SciPy format to a form palatable to Sphinx. +%global _description %{expand: +This package provides the numpydoc Sphinx extension for handling docstrings +formatted according to the NumPy documentation format. The extension also adds +the code description directives np:function, np-c:function, etc.} + +%description %{_description} %package -n python3-numpydoc Summary: %{summary} -%description -n python3-numpydoc -Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings -following the NumPy/SciPy format to a form palatable to Sphinx. +%description -n python3-numpydoc %{_description} %prep @@ -60,6 +61,7 @@ sed -i '\,#!/usr/bin/env python,d' numpydoc/validate.py - Drop obsolete %%python_provide macro - Don’t number the sole Source - Drop the unnecessary explicit BR on pyproject-rpm-macros +- Use the upstream description text (and don’t write it twice) * Thu Oct 19 2023 Jerry James - 1.6.0-1 - Version 1.6.0