120 lines
3.4 KiB
RPMSpec
120 lines
3.4 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: python-heatclient
|
|
Version: 2.2.1
|
|
Release: 1%{?dist}
|
|
Summary: Python API and CLI for OpenStack Heat
|
|
License: ASL 2.0
|
|
URL: https://launchpad.net/python-heatclient
|
|
Source0: https://tarballs.openstack.org/python-heatclient/python-heatclient-2.2.1.tar.gz
|
|
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
|
|
%{?python_provide:%python_provide python3-heatclient}
|
|
Obsoletes: python2-heatclient < 2.2.1-2
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: git
|
|
|
|
Requires: python3-babel
|
|
Requires: python3-iso8601
|
|
Requires: python3-keystoneauth1 >= 3.4.0
|
|
Requires: python3-osc-lib >= 1.14.0
|
|
Requires: python3-prettytable
|
|
Requires: python3-pbr
|
|
Requires: python3-six
|
|
Requires: python3-oslo-serialization >= 2.18.0
|
|
Requires: python3-oslo-utils >= 3.33.0
|
|
Requires: python3-oslo-i18n >= 3.15.3
|
|
Requires: python3-swiftclient >= 3.2.0
|
|
Requires: python3-requests
|
|
Requires: python3-cliff
|
|
Requires: python3-PyYAML
|
|
|
|
%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 doc
|
|
Summary: Documentation for OpenStack Heat API Client
|
|
|
|
BuildRequires: python3-sphinx
|
|
BuildRequires: python3-openstackdocstheme
|
|
BuildRequires: python3-babel
|
|
BuildRequires: python3-iso8601
|
|
BuildRequires: python3-keystoneauth1
|
|
BuildRequires: python3-osc-lib
|
|
BuildRequires: python3-prettytable
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-six
|
|
BuildRequires: python3-oslo-serialization
|
|
BuildRequires: python3-oslo-utils
|
|
BuildRequires: python3-oslo-i18n
|
|
BuildRequires: python3-swiftclient
|
|
BuildRequires: python3-requests
|
|
BuildRequires: python3-cliff
|
|
|
|
%description 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 -n python-heatclient-2.2.1 -S git
|
|
rm -rf {test-,}requirements.txt tools/{pip,test}-requires
|
|
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
%install
|
|
%{py3_install}
|
|
echo "2.2.1" > %{buildroot}%{python3_sitelib}/heatclient/versioninfo
|
|
# Create a versioned binary for backwards compatibility until everything is pure py3
|
|
ln -s heat %{buildroot}%{_bindir}/heat-3
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
install -pm 644 tools/heat.bash_completion \
|
|
%{buildroot}%{_sysconfdir}/bash_completion.d/heat
|
|
|
|
# Delete tests
|
|
rm -fr %{buildroot}%{python3_sitelib}/heatclient/tests
|
|
|
|
export PYTHONPATH=.
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
# Fix hidden-file-or-dir warnings
|
|
rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
|
|
|
|
# generate man page
|
|
sphinx-build -W -b man doc/source doc/build/man
|
|
install -p -D -m 644 doc/build/man/heat.1 %{buildroot}%{_mandir}/man1/heat.1
|
|
|
|
%files -n python3-heatclient
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python3_sitelib}/heatclient
|
|
%{python3_sitelib}/*.egg-info
|
|
%{_sysconfdir}/bash_completion.d
|
|
%{_mandir}/man1/heat.1.gz
|
|
%{_bindir}/heat
|
|
%{_bindir}/heat-3
|
|
|
|
%files doc
|
|
%doc doc/build/html
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Tue Feb 23 2021 Python_Bot <Python_Bot@openeuler.org>
|
|
- Package Spec generated
|