From c7bea4b5f00727e3ad431ac79e88cdda5d583183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 27 Jan 2023 20:02:12 +0100 Subject: [PATCH] Expand %description and reuse Summary This gets rid of following rpmlint warnings: python-markupsafe.src: W: description-shorter-than-summary python3-markupsafe.x86_64: W: description-shorter-than-summary The content for %description is from README.rst. --- python-markupsafe.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index e2942ed..83687aa 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -9,15 +9,20 @@ Source: https://github.com/pallets/markupsafe/archive/%{version}/markups BuildRequires: gcc BuildRequires: python3-devel -%description -A library for safe markup escaping. +%global _description %{expand: +MarkupSafe implements a text object that escapes characters so it is +safe to use in HTML and XML. Characters that have special meanings are +replaced so that they display as the actual characters. This mitigates +injection attacks, meaning untrusted user input can safely be displayed +on a page.} + +%description %_description %package -n python3-markupsafe -Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3 +Summary: %{summary} -%description -n python3-markupsafe -A library for safe markup escaping. Python 3 version. +%description -n python3-markupsafe %_description %prep