{% set pypi_name = 'python-heatclient' %} {% set upstream_version = upstream_version('3.5.0') %} {% set rpm_release = '1' %} {% set source = url_pypi() %} Name: {{ py2name() }} Version: {{ py2rpmversion() }} Release: {{ py2rpmrelease() }} Summary: Python API and CLI for OpenStack Heat License: {{ license('Apache-2.0') }} Group: Development/Languages/Python URL: https://docs.openstack.org/{{ pypi_name }} Source0: {{ source }} BuildRequires: openstack-macros BuildRequires: {{ py3('PyYAML') }} BuildRequires: {{ py3('cliff') }} BuildRequires: {{ py3('devel') }} BuildRequires: {{ py3('fixtures') }} BuildRequires: {{ py3('osc-lib') }} BuildRequires: {{ py3('oslo.serialization') }} BuildRequires: {{ py3('pbr') }} BuildRequires: {{ py3('requests-mock') }} BuildRequires: {{ py3('stestr') }} BuildRequires: {{ py3('python-swiftclient') }} BuildRequires: {{ py3('testscenarios') }} BuildRequires: {{ py3('testtools') }} Requires: {{ py3('Babel') }} Requires: {{ py3('PrettyTable') }} Requires: {{ py3('PyYAML') }} Requires: {{ py3('cliff') }} Requires: {{ py3('iso8601') }} Requires: {{ py3('keystoneauth1') }} Requires: {{ py3('osc-lib') }} Requires: {{ py3('oslo.i18n') }} Requires: {{ py3('oslo.serialization') }} Requires: {{ py3('oslo.utils') }} Requires: {{ py3('requests') }} Requires: {{ py3('python-swiftclient') }} BuildArch: noarch %description This is a client for the OpenStack Heat API. There's a Python API (the heatclient module), and a command-line script (heat). Each implements 100% of the OpenStack Heat API. %package -n python3-heatclient Summary: Python API and CLI for OpenStack Heat Requires: {{ py3('Babel') }} Requires: {{ py3('PrettyTable') }} Requires: {{ py3('PyYAML') }} Requires: {{ py3('cliff') }} Requires: {{ py3('iso8601') }} Requires: {{ py3('keystoneauth1') }} Requires: {{ py3('osc-lib') }} Requires: {{ py3('oslo.i18n') }} Requires: {{ py3('oslo.serialization') }} Requires: {{ py3('oslo.utils') }} Requires: {{ py3('requests') }} Requires: {{ py3('python-swiftclient') }} %if 0%{?suse_version} Obsoletes: {{ py2name(py_versions='py2') }} < 2.0.0 %endif %description -n python3-heatclient This is a client for the OpenStack Heat API. There's a Python API (the heatclient module), and a command-line script (heat). Each implements 100% of the OpenStack Heat API. %package -n python-heatclient-doc Summary: Documentation for OpenStack Heat API Client Group: Documentation/HTML BuildRequires: {{ py3('Sphinx') }} BuildRequires: {{ py3('openstackdocstheme') }} %description -n python-heatclient-doc This is a client for the OpenStack Heat API. There's a Python API (the heatclient module), and a command-line script (heat). Each implements 100% of the OpenStack Heat API. This package contains auto-generated documentation. %prep %autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }} %py_req_cleanup %build %{py3_build} PBR_VERSION={{ upstream_version }} %sphinx_build -b html doc/source doc/build/html PBR_VERSION={{ upstream_version }} %sphinx_build -b man doc/source doc/build/man # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %install %{py3_install} # man page install -p -D -m 644 doc/build/man/heat.1 %{buildroot}%{_mandir}/man1/heat.1 # bash completion install -p -D -m 644 tools/heat.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/heat.bash_completion %check %{openstack_stestr_run} %files -n python3-heatclient %license LICENSE %{python3_sitelib}/heatclient %{python3_sitelib}/*.egg-info %{_bindir}/heat %{_mandir}/man1/heat.1* %{_sysconfdir}/bash_completion.d/heat.bash_completion %files -n python-heatclient-doc %license LICENSE %doc doc/build/html README.rst %changelog