From a0d6c98192b5f533c69ca44eacd920ac75871b69 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 22 Dec 2023 09:32:49 -0500 Subject: [PATCH] Avoid repeating the description and summary in the spec file --- python-boto3.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/python-boto3.spec b/python-boto3.spec index ce52c56..0fc798a 100644 --- a/python-boto3.spec +++ b/python-boto3.spec @@ -10,23 +10,20 @@ URL: https://github.com/boto/boto3 Source: %{pypi_source %{pypi_name}} BuildArch: noarch -%description -Boto3 is the Amazon Web Services (AWS) Software Development -Kit (SDK) for Python, which allows Python developers to -write software that makes use of services like Amazon S3 -and Amazon EC2. +%global _description %{expand: +Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for +Python, which allows Python developers to write software that makes use of +services like Amazon S3 and Amazon EC2.} + +%description %{_description} %package -n python3-%{pypi_name} -Summary: The AWS SDK for Python +Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-%{pypi_name} -Boto3 is the Amazon Web Services (AWS) Software Development -Kit (SDK) for Python, which allows Python developers to -write software that makes use of services like Amazon S3 -and Amazon EC2. +%description -n python3-%{pypi_name} %{_description} %prep %setup -q -n %{pypi_name}-%{version} @@ -50,6 +47,7 @@ rm -rf tests/integration * Wed Jan 03 2024 Benjamin A. Beasley - 1.34.11-2 - Do not number the sole Source - Do not use the deprecated zero-argument form of %%pypi_source +- Avoid repeating the description and summary in the spec file * Tue Jan 02 2024 Gwyn Ciesla - 1.34.11-1 - 1.34.11