File openstack-rally.spec of Package openstack-rally

#
# spec file for package openstack-rally
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


%define component rally

%define version_unconverted 1.2.2.dev1

Name:           openstack-%{component}
Version:        1.2.2~dev1
Release:        0
Summary:        Benchmark System for OpenStack
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            http://www.openstack.org/
Source:         http://tarballs.openstack.org/rally/rally-master.tar.gz
Requires:       python-rally = %{version}
BuildRequires:  python-devel
BuildRequires:  python-pbr
BuildRequires:  python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Rally is a Benchmark-as-a-Service project for OpenStack.

Rally is intended to provide the community with a benchmarking tool that
is capable of performing **specific**, **complicated** and
**reproducible** test cases on **real deployment** scenarios.

%package -n python-rally
Summary:        Benchmark System for OpenStack - Python module
Group:          Development/Languages/Python
Requires:       python >= 2.7
Requires:       python-Jinja2
Requires:       python-PrettyTable
Requires:       python-PyYAML
Requires:       python-SQLAlchemy
Requires:       python-alembic
Requires:       python-boto >= 2.32.1
Requires:       python-cinderclient >= 3.3.0
Requires:       python-decorator
Requires:       python-designateclient >= 2.7.0
Requires:       python-glanceclient >= 2.8.0
Requires:       python-heatclient >= 1.10.0
Requires:       python-ironicclient >= 2.2.0
Requires:       python-jsonschema
Requires:       python-keystoneauth1 >= 3.3.0
Requires:       python-keystoneclient >= 3.8.0
Requires:       python-kubernetes >= 1.0.0
Requires:       python-magnumclient >= 2.1.0
Requires:       python-manilaclient >= 1.16.0
Requires:       python-mistralclient >= 3.1.0
Requires:       python-monascaclient >= 1.7.0
Requires:       python-muranoclient >= 0.8.2
Requires:       python-netaddr
Requires:       python-neutronclient >= 6.3.0
Requires:       python-novaclient >= 9.1.0
Requires:       python-os-faults >= 0.1.15
Requires:       python-oslo.config
Requires:       python-oslo.db
Requires:       python-oslo.i18n >= 2.1.0
Requires:       python-oslo.log
Requires:       python-oslo.serialization >= 1.10.0
Requires:       python-oslo.utils >= 3.33.0
Requires:       python-osprofiler >= 1.4.0
Requires:       python-paramiko
Requires:       python-pbr
Requires:       python-psycopg2 >= 2.5
Requires:       python-python-subunit
Requires:       python-requests
Requires:       python-saharaclient >= 1.4.0
Requires:       python-six
Requires:       python-swiftclient >= 3.2.0
Requires:       python-troveclient >= 2.2.0
Requires:       python-virtualenv
Requires:       python-zaqarclient >= 1.0.0

%description -n python-rally
This package contains the core Python module of OpenStack Rally.

%prep
%setup -q -n %{component}-%{version_unconverted}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d/
mv %{buildroot}/usr/etc/bash_completion.d/rally.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/

%check
#testr init
#testr run --parallel

%files
%defattr(-,root,root,-)
%doc README.rst ChangeLog LICENSE AUTHORS
%{_bindir}/rally-manage
%{_bindir}/rally
%{_sysconfdir}/bash_completion.d/%{component}.bash_completion

%files -n python-rally
%defattr(-,root,root,-)
%doc LICENSE
%{python_sitelib}/%{component}/
%{python_sitelib}/%{component}-*.egg-info

%changelog
openSUSE Build Service is sponsored by