Skip to content
Snippets Groups Projects
Commit 95da4fc0 authored by Aditya Ramteke's avatar Aditya Ramteke
Browse files

Moved package description to global variable.

https://github.com/redhat-openstack/easyfix/issues/4

Change-Id: I9058fc3b7f51381ce6ff0f61cbc7a00c64ca8f2a
parent 82994999
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,13 @@ ...@@ -9,6 +9,13 @@
%global default_python 2 %global default_python 2
%endif %endif
%global common_desc \
This is a client library for Magnum built on the Magnum API. \
It provides a Python API (the magnumclient module) and a \
command-line tool (magnum).
%global common_desc_tests Python-magnumclient test subpackage
Name: python-%{pname} Name: python-%{pname}
Version: XXX Version: XXX
Release: XXX Release: XXX
...@@ -20,9 +27,7 @@ Source0: https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_vers ...@@ -20,9 +27,7 @@ Source0: https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_vers
BuildArch: noarch BuildArch: noarch
%description %description
This is a client library for Magnum built on the Magnum API. %{common_desc}
It provides a Python API (the magnumclient module) and a
command-line tool (magnum).
%package -n python2-%{pname} %package -n python2-%{pname}
Summary: Client library for Magnum API Summary: Client library for Magnum API
...@@ -58,9 +63,7 @@ Requires: python-prettytable ...@@ -58,9 +63,7 @@ Requires: python-prettytable
Requires: python-six Requires: python-six
%description -n python2-%{pname} %description -n python2-%{pname}
This is a client library for Magnum built on the Magnum API. %{common_desc}
It provides a Python API (the magnumclient module) and a
command-line tool (magnum).
%if 0%{?with_python3} %if 0%{?with_python3}
%package -n python3-%{pname} %package -n python3-%{pname}
...@@ -96,9 +99,7 @@ Requires: python3-prettytable ...@@ -96,9 +99,7 @@ Requires: python3-prettytable
Requires: python3-six Requires: python3-six
%description -n python3-%{pname} %description -n python3-%{pname}
This is a client library for Magnum built on the Magnum API. %{common_desc}
It provides a Python API (the magnumclient module) and a
command-line tool (magnum).
%endif %endif
%package -n python-%{pname}-doc %package -n python-%{pname}-doc
...@@ -126,7 +127,7 @@ Requires: python-keystoneauth1 ...@@ -126,7 +127,7 @@ Requires: python-keystoneauth1
Requires: python-prettytable Requires: python-prettytable
%description -n python-%{pname}-tests %description -n python-%{pname}-tests
Python-magnumclient test subpackage %{common_desc_tests}
%if 0%{?with_python3} %if 0%{?with_python3}
%package -n python3-%{pname}-tests %package -n python3-%{pname}-tests
...@@ -144,7 +145,7 @@ Requires: python3-keystoneauth1 ...@@ -144,7 +145,7 @@ Requires: python3-keystoneauth1
Requires: python3-prettytable Requires: python3-prettytable
%description -n python3-%{pname}-tests %description -n python3-%{pname}-tests
Python-magnumclient test subpackage %{common_desc_tests}
%endif %endif
%prep %prep
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment