120 lines
4.2 KiB
Django/Jinja
120 lines
4.2 KiB
Django/Jinja
%global sname tempest
|
|
Name: {{ py2name('Tempest') }}
|
|
Epoch: {{ epoch('Tempest') }}
|
|
Version: 20.0.0
|
|
Release: 0
|
|
Summary: The OpenStack Integration Test Suite
|
|
License: {{ license('Apache-2.0') }}
|
|
Group: Development/Languages/Python
|
|
URL: https://launchpad.net/tempest
|
|
Source0: https://files.pythonhosted.org/packages/source/T/Tempest/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: {{ py2pkg('PrettyTable') }}
|
|
BuildRequires: {{ py2pkg('PyYAML') }}
|
|
BuildRequires: {{ py2pkg('cliff') }}
|
|
BuildRequires: {{ py2pkg('debtcollector') }}
|
|
BuildRequires: {{ py2pkg('devel') }}
|
|
BuildRequires: {{ py2pkg('fixtures') }}
|
|
BuildRequires: {{ py2pkg('jsonschema') }}
|
|
BuildRequires: {{ py2pkg('mock') }}
|
|
BuildRequires: {{ py2pkg('netaddr') }}
|
|
BuildRequires: {{ py2pkg('os-testr') }}
|
|
BuildRequires: {{ py2pkg('oslo.concurrency') }}
|
|
BuildRequires: {{ py2pkg('oslo.config') }}
|
|
BuildRequires: {{ py2pkg('oslo.log') }}
|
|
BuildRequires: {{ py2pkg('oslo.serialization') }}
|
|
BuildRequires: {{ py2pkg('oslo.utils') }}
|
|
BuildRequires: {{ py2pkg('oslotest') }}
|
|
BuildRequires: {{ py2pkg('paramiko') }}
|
|
BuildRequires: {{ py2pkg('pep8') }}
|
|
BuildRequires: {{ py2pkg('python-subunit') }}
|
|
BuildRequires: {{ py2pkg('six') }}
|
|
BuildRequires: {{ py2pkg('stevedore') }}
|
|
BuildRequires: {{ py2pkg('testrepository') }}
|
|
BuildRequires: {{ py2pkg('testscenarios') }}
|
|
BuildRequires: {{ py2pkg('testtools') }}
|
|
BuildRequires: {{ py2pkg('urllib3') }}
|
|
Requires: {{ py2pkg('PrettyTable') }}
|
|
Requires: {{ py2pkg('PyYAML') }}
|
|
Requires: {{ py2pkg('cliff') }}
|
|
Requires: {{ py2pkg('debtcollector') }}
|
|
Requires: {{ py2pkg('fixtures') }}
|
|
Requires: {{ py2pkg('jsonschema') }}
|
|
Requires: {{ py2pkg('netaddr') }}
|
|
Requires: {{ py2pkg('os-testr') }}
|
|
Requires: {{ py2pkg('oslo.concurrency') }}
|
|
Requires: {{ py2pkg('oslo.config') }}
|
|
Requires: {{ py2pkg('oslo.log') }}
|
|
Requires: {{ py2pkg('oslo.serialization') }}
|
|
Requires: {{ py2pkg('oslo.utils') }}
|
|
Requires: {{ py2pkg('paramiko') }}
|
|
Requires: {{ py2pkg('python-subunit') }}
|
|
Requires: {{ py2pkg('six') }}
|
|
Requires: {{ py2pkg('stevedore') }}
|
|
Requires: {{ py2pkg('testrepository') }}
|
|
Requires: {{ py2pkg('testscenarios') }}
|
|
Requires: {{ py2pkg('testtools') }}
|
|
Requires: {{ py2pkg('urllib3') }}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Tempest is a set of integration tests to be run against a live OpenStack
|
|
cluster. Tempest has batteries of tests for OpenStack API validation,
|
|
Scenarios, and other specific tests useful in validating an OpenStack
|
|
deployment.
|
|
|
|
%package doc
|
|
Summary: Documentation for the OpenStack Integration Test Suite
|
|
BuildRequires: {{ py2pkg('Sphinx') }}
|
|
BuildRequires: {{ py2pkg('openstackdocstheme') }}
|
|
|
|
%description doc
|
|
Documentation for the OpenStack Integration Test Suite.
|
|
|
|
%prep
|
|
%autosetup -n %{sname}-%{version}
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%{py2_build}
|
|
|
|
%install
|
|
%{py2_install}
|
|
|
|
# NOTE(toabctl): config files are installed into usr/etc/
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/tempest
|
|
mv %{buildroot}/%{_prefix}/%{_sysconfdir}/%{sname}/accounts.yaml.sample %{buildroot}/%{_sysconfdir}/%{sname}/accounts.yaml
|
|
mv %{buildroot}/%{_prefix}/%{_sysconfdir}/%{sname}/logging.conf.sample %{buildroot}/%{_sysconfdir}/%{sname}/logging.conf
|
|
mv %{buildroot}/%{_prefix}/%{_sysconfdir}/%{sname}/whitelist.yaml %{buildroot}/%{_sysconfdir}/%{sname}/whitelist.yaml
|
|
|
|
# generate html docs
|
|
PBR_VERSION=%version sphinx-build -b html doc/source doc/build/html
|
|
# remove the sphinx-build leftovers
|
|
###rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
##%check
|
|
##export OS_TEST_PATH=./tempest/tests
|
|
##PYTHONPATH=. %{__python2} setup.py testr
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog
|
|
%{python2_sitelib}/tempest
|
|
%{python2_sitelib}/*.egg-info
|
|
%{_bindir}/tempest
|
|
%{_bindir}/verify-tempest-config
|
|
%{_bindir}/tempest-account-generator
|
|
%{_bindir}/skip-tracker
|
|
%{_bindir}/check-uuid
|
|
%{_bindir}/subunit-describe-calls
|
|
%dir %{_sysconfdir}/tempest
|
|
%config(noreplace) %{_sysconfdir}/tempest/logging.conf
|
|
%config(noreplace) %{_sysconfdir}/tempest/accounts.yaml
|
|
%config(noreplace) %{_sysconfdir}/tempest/whitelist.yaml
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|