%global sname python-ironicclient Name: {{ py2name('python-ironicclient') }} Version: 1.17.2 Release: 0 Summary: Python API and CLI for OpenStack Ironic License: {{ license('Apache-2.0')}} Group: Development/Languages/Python Url: https://launchpad.net/%{sname} Source0: https://files.pythonhosted.org/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz BuildRequires: openstack-macros BuildRequires: {{ py2pkg('Babel') }} BuildRequires: {{ py2pkg('PrettyTable') }} BuildRequires: {{ py2pkg('PyYAML') }} BuildRequires: {{ py2pkg('appdirs') }} BuildRequires: {{ py2pkg('devel') }} BuildRequires: {{ py2pkg('dogpile.cache') }} BuildRequires: {{ py2pkg('fixtures') }} BuildRequires: {{ py2pkg('jsonschema') }} BuildRequires: {{ py2pkg('mock') }} BuildRequires: {{ py2pkg('python-openstackclient') }} BuildRequires: {{ py2pkg('os-testr') }} BuildRequires: {{ py2pkg('osc-lib') }} BuildRequires: {{ py2pkg('oslo.i18n') }} BuildRequires: {{ py2pkg('oslo.utils') }} BuildRequires: {{ py2pkg('oslotest') }} BuildRequires: {{ py2pkg('pbr') }} BuildRequires: {{ py2pkg('python-subunit') }} BuildRequires: {{ py2pkg('requests') }} BuildRequires: {{ py2pkg('requests-mock') }} BuildRequires: {{ py2pkg('testtools') }} Requires: {{ py2pkg('PrettyTable') }} Requires: {{ py2pkg('PyYAML') }} Requires: {{ py2pkg('appdirs') }} Requires: {{ py2pkg('dogpile.cache') }} Requires: {{ py2pkg('jsonschema') }} Requires: {{ py2pkg('keystoneauth1') }} Requires: {{ py2pkg('python-openstackclient') }} Requires: {{ py2pkg('osc-lib') }} Requires: {{ py2pkg('oslo.i18n') }} Requires: {{ py2pkg('oslo.utils') }} Requires: {{ py2pkg('pbr') }} Requires: {{ py2pkg('requests') }} Requires: {{ py2pkg('six') }} BuildArch: noarch %description OpenStack Bare Metal Provisioning API Client Library This is a client for the OpenStack Ironic API. It provides a Python API (the ironicclient module) and a command-line interface (ironic). %package doc Summary: Documentation for OpenStack Ironic API Client Group: Documentation/HTML BuildRequires: {{ py2pkg('Sphinx') }} BuildRequires: {{ py2pkg('openstackdocstheme') }} BuildRequires: {{ py2pkg('reno') }} %description doc This is a client for the OpenStack Ironic API (Bare Metal. There's a Python API (the ironicclient module), and a command-line script (ironic). Each implements 100% of the OpenStack Ironic API. This package contains auto-generated documentation. %prep %autosetup -n %{sname}-%{version} %py_req_cleanup sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg %build %{py2_build} %{__python2} setup.py build_sphinx # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %install %{py2_install} # bash completion install -p -D -m 644 tools/ironic.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/ironic.bash_completion %check %{__python2} setup.py testr %files %license LICENSE %doc README.rst %{_bindir}/ironic %{python2_sitelib}/ironicclient %{python2_sitelib}/*.egg-info %{_bindir}/ironic %{_sysconfdir}/bash_completion.d/ironic.bash_completion %files doc %license LICENSE %doc doc/build/html %changelog