From bd2e2eb54b8a47360db006f0846e6facf05d71c6 Mon Sep 17 00:00:00 2001 From: Carl George Date: Dec 13 2018 02:38:33 +0000 Subject: Clean up summaries and descriptions --- diff --git a/python-os-testr.spec b/python-os-testr.spec index a2dcfa9..71652eb 100644 --- a/python-os-testr.spec +++ b/python-os-testr.spec @@ -1,6 +1,10 @@ %{!?upstream_version: %global upstream_version %{version}%{?milestone}} %global pypi_name os-testr +%global common_description %{expand: +ostestr is a testr wrapper that uses subunit-trace for output and builds +some helpful extra functionality around testr.} + %if 0%{?fedora} %global with_python3 1 %endif @@ -16,14 +20,11 @@ Source0: http://tarballs.openstack.org/os-testr/os-testr-%{upstream_versi BuildArch: noarch -%global _description\ -ostestr is a testr wrapper that uses subunit-trace for output and builds\ -some helpful extra functionality around testr. +%description %{common_description} -%description %_description %package -n python2-%{pypi_name} -Summary: %summary +Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-pbr BuildRequires: python2-setuptools @@ -35,11 +36,13 @@ Requires: python2-testtools Requires: python2-setuptools %{?python_provide:%python_provide python2-%{pypi_name}} -%description -n python2-%{pypi_name} %_description + +%description -n python2-%{pypi_name} %{common_description} + %if 0%{?with_python3} %package -n python3-%{pypi_name} -Summary: A testr wrapper to provide functionality for OpenStack projects +Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pbr BuildRequires: python3-setuptools @@ -51,13 +54,13 @@ Requires: python3-testtools Requires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-%{pypi_name} -ostestr is a testr wrapper that uses subunit-trace for output and builds -some helpful extra functionality around testr. + +%description -n python3-%{pypi_name} %{common_description} %endif + %package doc -Summary: Documentation for ostestr module +Summary: Documentation for ostestr module %if %{with python3} BuildRequires: python3-sphinx BuildRequires: python3-oslo-sphinx @@ -68,8 +71,9 @@ BuildRequires: python2-oslo-sphinx Provides: python3-%{pypi_name}-doc = %{version}-%{release} Obsoletes: python3-%{pypi_name}-doc < 0.8.0-8 + %description doc -Documentation for ostestr module +Documentation for ostestr module. %prep