make common description

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-01-08 03:14:00 +01:00
parent 7d95615d04
commit 60fc488d03

View File

@ -11,10 +11,12 @@ Source0: https://pypi.io/packages/source/%(n=%{srcname}; echo ${n:0:1})/%
BuildArch: noarch BuildArch: noarch
%description %global _description \
A library for handling computations with address ranges. The library also offers A library for handling computations with address ranges. The library also offers\
a configurable way to extract the representation of a value. a configurable way to extract the representation of a value.
%description %{_description}
%package -n python2-%{srcname} %package -n python2-%{srcname}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}} %{?python_provide:%python_provide python2-%{srcname}}
@ -23,9 +25,9 @@ BuildRequires: python2-setuptools
Requires: python2-justbases Requires: python2-justbases
Requires: python2-six Requires: python2-six
%description -n python2-%{srcname} %description -n python2-%{srcname} %{_description}
A library for handling computations with address ranges. The library also offers
a configurable way to extract the representation of a value. Python 2 version.
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
@ -35,9 +37,9 @@ BuildRequires: python3-setuptools
Requires: python3-justbases Requires: python3-justbases
Requires: python3-six Requires: python3-six
%description -n python3-%{srcname} %description -n python3-%{srcname} %{_description}
A library for handling computations with address ranges. The library also offers
a configurable way to extract the representation of a value. Python 3 version.
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version}