Use expand macro to define the common description
This commit is contained in:
parent
d3d7c08628
commit
271e3ab5c5
@ -7,11 +7,11 @@
|
|||||||
# package name fragment
|
# package name fragment
|
||||||
%global pkgname %{libname}
|
%global pkgname %{libname}
|
||||||
|
|
||||||
%global _description \
|
%global common_description %{expand:
|
||||||
A Python implementation of JSON Web Token draft 01. This library provides a\
|
A Python implementation of JSON Web Token draft 01. This library provides a
|
||||||
means of representing signed content using JSON data structures, including\
|
means of representing signed content using JSON data structures, including
|
||||||
claims to be transferred between two parties encoded as digitally signed and\
|
claims to be transferred between two parties encoded as digitally signed and
|
||||||
encrypted JSON objects.
|
encrypted JSON objects.}
|
||||||
|
|
||||||
%if %{defined fedora} && 0%{?fedora} < 30
|
%if %{defined fedora} && 0%{?fedora} < 30
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
@ -31,7 +31,7 @@ Patch0: skip-failing-tests.patch
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
%description %{_description}
|
%description %{common_description}
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
@ -45,7 +45,7 @@ Requires: python2-cryptography >= 1.4.0
|
|||||||
%{?python_provide:%python_provide python2-%{pkgname}}
|
%{?python_provide:%python_provide python2-%{pkgname}}
|
||||||
|
|
||||||
|
|
||||||
%description -n python2-%{pkgname} %{_description}
|
%description -n python2-%{pkgname} %{common_description}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ Requires: python%{python3_pkgversion}-cryptography >= 1.4.0
|
|||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
|
||||||
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{pkgname} %{_description}
|
%description -n python%{python3_pkgversion}-%{pkgname} %{common_description}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user