simplify description handling

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 7 years ago
parent cae9e13ccf
commit d6de9d404c

@ -16,13 +16,15 @@ BuildRequires: %{_bindir}/sphinx-build
BuildArch: noarch BuildArch: noarch
%description %global _description \
Hypothesis is a library for testing your Python code against a much Hypothesis is a library for testing your Python code against a much\
larger range of examples than you would ever want to write by larger range of examples than you would ever want to write by\
hand. Its based on the Haskell library, Quickcheck, and is designed hand. Its based on the Haskell library, Quickcheck, and is designed\
to integrate seamlessly into your existing Python unit testing work to integrate seamlessly into your existing Python unit testing work\
flow. flow.
%description %{_description}
%package -n python2-%{srcname} %package -n python2-%{srcname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python2-devel BuildRequires: python2-devel
@ -34,12 +36,9 @@ Suggests: python2-numpy
Suggests: python2-pytz Suggests: python2-pytz
%endif %endif
%description -n python2-%{srcname} %description -n python2-%{srcname} %{_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 Python 2 version.
hand. Its based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
@ -52,12 +51,9 @@ Suggests: python3-pytz
%endif %endif
Obsoletes: platform-python-%{srcname} < 3.12.0-5 Obsoletes: platform-python-%{srcname} < 3.12.0-5
%description -n python3-%{srcname} %description -n python3-%{srcname} %{_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 Python 2 version.
hand. Its based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.
%prep %prep
%autosetup -n %{srcname}-python-%{version} -p1 %autosetup -n %{srcname}-python-%{version} -p1

Loading…
Cancel
Save