Reduce description/Summary duplication in the spec file

epel9
Benjamin A. Beasley 1 year ago
parent bf40c13303
commit d1729302fa

@ -14,13 +14,18 @@ BuildRequires: gcc
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
%global _description\ %global _description %{expand:
The aim of the wrapt module is to provide a transparent object proxy\ The aim of the wrapt module is to provide a transparent object proxy for
for Python, which can be used as the basis for the construction of\ Python, which can be used as the basis for the construction of function
function wrappers and decorator functions. wrappers and decorator functions.}
%description %_description %description %_description
%package -n python3-wrapt
Summary: %{summary}
%description -n python3-wrapt %_description
%if %{with docs} %if %{with docs}
%package doc %package doc
Summary: Documentation for the wrapt module Summary: Documentation for the wrapt module
@ -29,17 +34,9 @@ BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme BuildRequires: python3-sphinx_rtd_theme
%description doc %description doc
Documentation for the wrapt module %{summary}.
%endif %endif
%package -n python3-wrapt
Summary: A Python module for decorators, wrappers and monkey patching
%description -n python3-wrapt
The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.
%prep %prep
%setup -q -n wrapt-%{version} %setup -q -n wrapt-%{version}

Loading…
Cancel
Save