- Add plug-in summary for osc doc - Add --no-rollback option for stack cancel - Add `--converge` argument for osc stack update - No longer use oslotest.mockpatch - Use generic user for both zuul v2 and v3 - Modify error message encountered during stack update - Decode content before checking - Support --show-nested in openstack stack update --dry-run - Don't override sections in deep_update - Imported Translations from Zanata - Don't preformat stack output show list/map values - Remove vestigate HUDSON_PUBLISH_DOCS reference - Allow cancelling create_in_progress stacks with --no-rollback - Updated from global requirements - Use Sphinx 1.5 warning-is-error - Convert to singlespec OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-heatclient?expand=0&rev=43
143 lines
4.6 KiB
RPMSpec
143 lines
4.6 KiB
RPMSpec
#
|
|
# spec file for package python-heatclient
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-heatclient
|
|
Version: 1.13.0
|
|
Release: 0
|
|
Summary: Python API and CLI for OpenStack Heat
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/python-heatclient
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-heatclient/python-heatclient-1.13.0.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: python-devel
|
|
BuildRequires: python2-PyYAML
|
|
BuildRequires: python2-cliff
|
|
BuildRequires: python2-fixtures
|
|
BuildRequires: python2-mock
|
|
BuildRequires: python2-mox3
|
|
BuildRequires: python2-osc-lib
|
|
BuildRequires: python2-oslo.serialization
|
|
BuildRequires: python2-pbr
|
|
BuildRequires: python2-requests-mock
|
|
BuildRequires: python2-swiftclient
|
|
BuildRequires: python2-testrepository
|
|
BuildRequires: python2-testscenarios
|
|
BuildRequires: python2-testtools
|
|
BuildRequires: python3-PyYAML
|
|
BuildRequires: python3-cliff
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-fixtures
|
|
BuildRequires: python3-mock
|
|
BuildRequires: python3-mox3
|
|
BuildRequires: python3-osc-lib
|
|
BuildRequires: python3-oslo.serialization
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-requests-mock
|
|
BuildRequires: python3-swiftclient
|
|
BuildRequires: python3-testrepository
|
|
BuildRequires: python3-testscenarios
|
|
BuildRequires: python3-testtools
|
|
Requires: python-Babel
|
|
Requires: python-PrettyTable
|
|
Requires: python-PyYAML
|
|
Requires: python-cliff
|
|
Requires: python-iso8601
|
|
Requires: python-keystoneauth1
|
|
Requires: python-osc-lib
|
|
Requires: python-oslo.i18n
|
|
Requires: python-oslo.serialization
|
|
Requires: python-oslo.utils
|
|
Requires: python-requests
|
|
Requires: python-six
|
|
Requires: python-swiftclient
|
|
BuildArch: noarch
|
|
%if 0%{?suse_version}
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
%else
|
|
# on RDO, update-alternatives is in chkconfig
|
|
Requires(post): chkconfig
|
|
Requires(postun): chkconfig
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%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 python-heatclient-doc
|
|
Summary: Documentation for OpenStack Heat API Client
|
|
Group: Documentation/HTML
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-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 python-heatclient-1.13.0
|
|
%py_req_cleanup
|
|
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
|
|
|
%build
|
|
%{python_build}
|
|
|
|
%{__python2} setup.py build_sphinx --builder=html,man
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%{python_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
|
|
%python_clone -a %{buildroot}%{_bindir}/heat
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/heat.1
|
|
%python_clone -a %{buildroot}%{_sysconfdir}/bash_completion.d/heat.bash_completion
|
|
|
|
%post
|
|
%{python_install_alternative heat heat.1 %{_sysconfdir}/bash_completion.d/heat.bash_completion}
|
|
|
|
%postun
|
|
%python_uninstall_alternative heat
|
|
|
|
%check
|
|
%{python_expand rm -rf .testrepository
|
|
$python setup.py testr
|
|
}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%{python_sitelib}/heatclient
|
|
%{python_sitelib}/*.egg-info
|
|
%python_alternative %{_bindir}/heat
|
|
%python_alternative %{_mandir}/man1/heat.1
|
|
%python_alternative %{_sysconfdir}/bash_completion.d/heat.bash_completion
|
|
|
|
%files -n python-heatclient-doc
|
|
%license LICENSE
|
|
%doc doc/build/html README.rst
|
|
|
|
%changelog
|