From d6de9d404cc4e28b8c2878051128dddb128434c8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 2 Nov 2017 08:37:45 +0100 Subject: [PATCH] simplify description handling Signed-off-by: Igor Gnatenko --- python-hypothesis.spec | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/python-hypothesis.spec b/python-hypothesis.spec index b435834..3e11cce 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -16,13 +16,15 @@ BuildRequires: %{_bindir}/sphinx-build BuildArch: noarch -%description -Hypothesis is a library for testing your Python code against a much -larger range of examples than you would ever want to write by -hand. It’s based on the Haskell library, Quickcheck, and is designed -to integrate seamlessly into your existing Python unit testing work +%global _description \ +Hypothesis is a library for testing your Python code against a much\ +larger range of examples than you would ever want to write by\ +hand. It’s based on the Haskell library, Quickcheck, and is designed\ +to integrate seamlessly into your existing Python unit testing work\ flow. +%description %{_description} + %package -n python2-%{srcname} Summary: %{summary} BuildRequires: python2-devel @@ -34,12 +36,9 @@ Suggests: python2-numpy Suggests: python2-pytz %endif -%description -n python2-%{srcname} -Hypothesis is a library for testing your Python code against a much -larger range of examples than you would ever want to write by -hand. It’s based on the Haskell library, Quickcheck, and is designed -to integrate seamlessly into your existing Python unit testing work -flow. +%description -n python2-%{srcname} %{_description} + +Python 2 version. %package -n python3-%{srcname} Summary: %{summary} @@ -52,12 +51,9 @@ Suggests: python3-pytz %endif Obsoletes: platform-python-%{srcname} < 3.12.0-5 -%description -n python3-%{srcname} -Hypothesis is a library for testing your Python code against a much -larger range of examples than you would ever want to write by -hand. It’s based on the Haskell library, Quickcheck, and is designed -to integrate seamlessly into your existing Python unit testing work -flow. +%description -n python3-%{srcname} %{_description} + +Python 2 version. %prep %autosetup -n %{srcname}-python-%{version} -p1