%global sname tempest Name: {{ py2name('Tempest') }} Version: 12.1.0 Release: 0 Summary: The OpenStack Integration Test Suite License: {{ license('Apache-2.0') }} Group: Development/Languages/Python Url: http://launchpad.net/tempest Source0: https://pypi.io/packages/source/t/%{sname}/%{sname}-%{version}.tar.gz BuildRequires: openstack-macros BuildRequires: {{ py2pkg('PrettyTable') }} BuildRequires: {{ py2pkg('PyYAML') }} BuildRequires: {{ py2pkg('cliff') }} 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.i18n') }} BuildRequires: {{ py2pkg('oslo.log') }} BuildRequires: {{ py2pkg('oslo.serialization') }} BuildRequires: {{ py2pkg('oslo.utils') }} BuildRequires: {{ py2pkg('oslotest') }} BuildRequires: {{ py2pkg('paramiko') }} BuildRequires: {{ py2pkg('pep8') }} BuildRequires: {{ py2pkg('pyOpenSSL') }} 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('fixtures') }} Requires: {{ py2pkg('jsonschema') }} Requires: {{ py2pkg('netaddr') }} Requires: {{ py2pkg('os-testr') }} Requires: {{ py2pkg('oslo.concurrency') }} Requires: {{ py2pkg('oslo.config') }} Requires: {{ py2pkg('oslo.i18n') }} Requires: {{ py2pkg('oslo.log') }} Requires: {{ py2pkg('oslo.serialization') }} Requires: {{ py2pkg('oslo.utils') }} Requires: {{ py2pkg('paramiko') }} Requires: {{ py2pkg('pyOpenSSL') }} 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('oslosphinx') }} %description doc Documentation for the OpenStack Integration Test Suite. %prep %setup -q -n %{sname}-%{version} # FIXME(toabctl): Remove when https://review.openstack.org/#/c/363036/ is merged sed -i -e 's/^\(html_last_updated_fmt.*\)\(git_cmd\)/\1"\/usr\/bin\/true"/' doc/source/conf.py %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}/javelin-resources.yaml.sample %{buildroot}/%{_sysconfdir}/%{sname}/javelin-resources.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 %{__python2} setup.py build_sphinx # 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}/javelin2 %{_bindir}/run-tempest-stress %{_bindir}/tempest-cleanup %{_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 %config(noreplace) %{_sysconfdir}/tempest/javelin-resources.yaml %files doc %license LICENSE %doc doc/build/html %changelog