From 60fc488d03d833b2ddab6a7e9793d4e8330aaea0 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 8 Jan 2018 03:14:00 +0100 Subject: [PATCH] make common description Signed-off-by: Igor Gnatenko --- python-justbytes.spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/python-justbytes.spec b/python-justbytes.spec index 29f6e31..085d074 100644 --- a/python-justbytes.spec +++ b/python-justbytes.spec @@ -11,10 +11,12 @@ Source0: https://pypi.io/packages/source/%(n=%{srcname}; echo ${n:0:1})/% BuildArch: noarch -%description -A library for handling computations with address ranges. The library also offers +%global _description \ +A library for handling computations with address ranges. The library also offers\ a configurable way to extract the representation of a value. +%description %{_description} + %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} @@ -23,9 +25,9 @@ BuildRequires: python2-setuptools Requires: python2-justbases Requires: python2-six -%description -n python2-%{srcname} -A library for handling computations with address ranges. The library also offers -a configurable way to extract the representation of a value. +%description -n python2-%{srcname} %{_description} + +Python 2 version. %package -n python3-%{srcname} Summary: %{summary} @@ -35,9 +37,9 @@ BuildRequires: python3-setuptools Requires: python3-justbases Requires: python3-six -%description -n python3-%{srcname} -A library for handling computations with address ranges. The library also offers -a configurable way to extract the representation of a value. +%description -n python3-%{srcname} %{_description} + +Python 3 version. %prep %autosetup -n %{srcname}-%{version}