Avoid repeating the description and summary in the spec file

This commit is contained in:
Benjamin A. Beasley 2023-12-22 09:32:49 -05:00
parent 2576895d42
commit a0d6c98192

View File

@ -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 <code@musicinmybrain.net> - 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 <gwync@protonmail.com> - 1.34.11-1
- 1.34.11