File python-tempest-lib.spec of Package python-tempest-lib
#
# spec file for package python-tempest-lib
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/
#
Name: python-tempest-lib
Version: 1.0.0
Release: 0
Summary: OpenStack Functional Testing Library
License: Apache-2.0
Group: Development/Languages/Python
Url: http://www.openstack.org/
Source0: https://pypi.io/packages/source/t/tempest-lib/tempest-lib-%{version}.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-ddt >= 1.0.1
BuildRequires: python-devel
BuildRequires: python-httplib2 >= 0.7.5
BuildRequires: python-jsonschema >= 2.0.0
BuildRequires: python-mock >= 2.0
BuildRequires: python-oslo.log >= 1.14.0
BuildRequires: python-oslosphinx >= 2.5.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-paramiko >= 2.0
BuildRequires: python-pbr >= 1.6
BuildRequires: python-python-subunit >= 0.0.18
BuildRequires: python-sphinx >= 1.2.1
BuildRequires: python-testrepository >= 0.0.18
BuildRequires: python-testscenarios >= 0.4
BuildRequires: python-testtools >= 1.4.0
Requires: python-Babel >= 2.3.4
Requires: python-fixtures >= 3.0.0
Requires: python-httplib2 >= 0.7.5
Requires: python-iso8601 >= 0.1.11
Requires: python-jsonschema >= 2.0.0
Requires: python-os-testr >= 0.7.0
Requires: python-oslo.log >= 1.14.0
Requires: python-six >= 1.9.0
BuildArch: noarch
%description
OpenStack Functional Testing Library
%prep
%setup -q -n tempest-lib-%{version}
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
# both files are provided by openstack-tempest (because tempest-lib is
# now deprecated and the code was copied to tempest)
rm %{buildroot}/%{_bindir}/skip-tracker
rm %{buildroot}/%{_bindir}/check-uuid
%check
%{__python2} setup.py testr
%files
%defattr(-,root,root,-)
%license LICENSE
%doc README.rst ChangeLog AUTHORS
%{python2_sitelib}/tempest_lib
%{python2_sitelib}/*.egg-info
%changelog