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.
This commit is contained in:
parent
1ec96d5220
commit
c7bea4b5f0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user