Name: python-novaclient Epoch: {{ epoch('python-novaclient') }} Version: 9.1.3 Release: 0 Summary: Python API and CLI for OpenStack Nova License: {{ license('Apache-2.0') }} Group: Development/Languages/Python Url: http:///launchpad.net/{name} Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildRequires: openssl BuildRequires: openstack-macros BuildRequires: {{ py2pkg('python-cinderclient') }} BuildRequires: {{ py2pkg('devel') }} BuildRequires: {{ py2pkg('fixtures') }} BuildRequires: {{ py2pkg('python-glanceclient') }} BuildRequires: {{ py2pkg('python-keystoneclient') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('os-client-config') }} BuildRequires: {{ py2pkg('osprofiler') }} BuildRequires: {{ py2pkg('pbr') }} BuildRequires: {{ py2pkg('requests-mock') }} BuildRequires: {{ py2pkg('setuptools') }} BuildRequires: {{ py2pkg('testrepository') }} BuildRequires: {{ py2pkg('testscenarios') }} BuildRequires: {{ py2pkg('testtools') }} Requires: openssl Requires: {{ py2pkg('Babel') }} Requires: {{ py2pkg('PrettyTable') }} Requires: {{ py2pkg('iso8601') }} Requires: {{ py2pkg('keystoneauth1') }} Requires: {{ py2pkg('oslo.i18n') }} Requires: {{ py2pkg('oslo.serialization') }} Requires: {{ py2pkg('oslo.utils') }} Requires: {{ py2pkg('pbr') }} Requires: {{ py2pkg('requests') }} Requires: {{ py2pkg('setuptools') }} Requires: {{ py2pkg('simplejson') }} Requires: {{ py2pkg('six') }} BuildArch: noarch %description This is a client for the OpenStack Nova API. There's a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API. %package doc Summary: Documentation for OpenStack Nova API Client Group: Documentation/HTML BuildRequires: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('openstackdocstheme') }} BuildRequires: {{ py2pkg('reno') }} %description doc This is a client for the OpenStack Nova API. There's a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API. This package contains auto-generated documentation. %package test Summary: Testsuite for OpenStack Nova API Client Group: Development/Languages/Python Requires: %{name} = %{epoch}:%{version} Requires: {{ py2pkg('fixtures') }} Requires: {{ py2pkg('python-glanceclient') }} Requires: {{ py2pkg('python-keystoneclient') }} Requires: {{ py2pkg('mock') }} Requires: {{ py2pkg('os-client-config') }} Requires: {{ py2pkg('osprofiler') }} Requires: {{ py2pkg('requests-mock') }} Requires: {{ py2pkg('testrepository') }} Requires: {{ py2pkg('testscenarios') }} Requires: {{ py2pkg('testtools') }} %description test This is a client for the OpenStack Nova API. There's a Python API (the novaclient module), and a command-line script (nova). Each implements 100% of the OpenStack Nova API. This package contains the testsuite. %prep %autosetup -p1 -n %{name}-%{version} %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build %py2_build %install %py2_install %{__python2} setup.py build_sphinx # Fix hidden-file-or-dir warnings rm -fr html/.doctrees html/.buildinfo # handle the test subpackage %openstack_test_package_install novaclient %check OS_TEST_PATH=novaclient/tests/unit %{__python2} setup.py testr %files %doc README.rst %license LICENSE %{_bindir}/nova %{python2_sitelib}/novaclient %{python2_sitelib}/*.egg-info %files doc %doc doc/build/html %license LICENSE %files test %license LICENSE %openstack_test_package_dir %changelog