File python-heat-tempest-plugin.spec of Package python-heat-tempest-plugin

# spec file for package python-heat-tempest-plugin
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%global sname heat_tempest_plugin
%global with_doc 0
%global common_desc \
This package contains Tempest tests to cover the heat project. \
Additionally it provides a plugin to automatically load these tests into Tempest.
Name:           python-heat-tempest-plugin
Version:        0.2.0
Release:        0
Summary:        Tempest plugin for the heat project
License:        Apache-2.0
Group:          Development/Languages/Python
Source0:        heat-tempest-plugin-0.2.0.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python-devel
BuildRequires:  python-pbr
BuildRequires:  python-setuptools
Requires:       openstack-tempest
Requires:       python-cinderclient
Requires:       python-eventlet
Requires:       python-gabbi >= 1.42.1
Requires:       python-gnocchiclient >= 3.3.1
Requires:       python-heatclient
Requires:       python-keystoneauth1 >= 3.4.0
Requires:       python-kombu >= 4.0.0
Requires:       python-neutronclient
Requires:       python-novaclient
Requires:       python-oslo.config >= 5.2.0
Requires:       python-oslo.log >= 3.36.0
Requires:       python-oslo.messaging >= 5.29.0
Requires:       python-paramiko >= 2.0.0
Requires:       python-pbr
Requires:       python-six
Requires:       python-swiftclient
Requires:       python-testscenarios >= 0.4
Requires:       python-testtools >= 2.2.0
Requires:       python-zaqarclient
BuildArch:      noarch


%if 0%{?with_doc}
%package doc
Summary:        Documentation for heat tempest plugin
Group:          Development/Languages/Python
BuildRequires:  python-Sphinx
BuildRequires:  python-oslosphinx

%description doc
It contains the documentation for the heat tempest tests.

%autosetup -n heat-tempest-plugin-0.2.0

# Let's handle dependencies ourseleves
# Remove bundled egg-info
rm -rf %{module}.egg-info


# Generate Docs
%if 0%{?with_doc}
%{__python2} build_sphinx
# remove the sphinx build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}


%license LICENSE
%doc README.rst

%if 0%{?with_doc}
%files doc
%doc doc/build/html
%license LICENSE