|
|
7471d5c |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
7471d5c |
|
|
|
0a09127 |
%global sname novaclient
|
|
|
0a09127 |
|
|
|
0a09127 |
%if 0%{?fedora}
|
|
|
0a09127 |
%global with_python3 1
|
|
|
0a09127 |
%endif
|
|
|
0a09127 |
|
|
|
027794d |
%global common_desc \
|
|
|
027794d |
This is a client for the OpenStack Nova API. There's a Python API (the \
|
|
|
027794d |
novaclient module), and a command-line script (nova). Each implements 100% of \
|
|
|
027794d |
the OpenStack Nova API.
|
|
|
027794d |
|
|
Mark McLoughlin |
acbee3d |
Name: python-novaclient
|
|
|
039c8c7 |
Epoch: 1
|
|
|
027794d |
Version: 10.1.0
|
|
|
027794d |
Release: 1%{?dist}
|
|
Mark McLoughlin |
acbee3d |
Summary: Python API and CLI for OpenStack Nova
|
|
Mark McLoughlin |
acbee3d |
License: ASL 2.0
|
|
|
027794d |
URL: https://launchpad.net/%{name}
|
|
|
0a09127 |
Source0: https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
Mark McLoughlin |
acbee3d |
BuildArch: noarch
|
|
|
0a09127 |
|
|
|
027794d |
BuildRequires: git
|
|
|
027794d |
|
|
|
0a09127 |
%description
|
|
|
027794d |
%{common_desc}
|
|
|
0a09127 |
|
|
|
0a09127 |
%package -n python2-%{sname}
|
|
|
0a09127 |
Summary: Python API and CLI for OpenStack Nova
|
|
|
0a09127 |
%{?python_provide:%python_provide python2-novaclient}
|
|
|
0a09127 |
|
|
Jakub Ruzicka |
1b4b584 |
BuildRequires: python2-devel
|
|
|
027794d |
BuildRequires: python2-pbr
|
|
|
027794d |
BuildRequires: python2-setuptools
|
|
|
027794d |
|
|
|
027794d |
Requires: python2-babel >= 2.3.4
|
|
|
027794d |
Requires: python2-iso8601 >= 0.1.11
|
|
|
027794d |
Requires: python2-keystoneauth1 >= 3.3.0
|
|
|
027794d |
Requires: python2-oslo-i18n >= 3.15.3
|
|
|
027794d |
Requires: python2-oslo-serialization >= 2.18.0
|
|
|
027794d |
Requires: python2-oslo-utils >= 3.33.0
|
|
|
027794d |
Requires: python2-pbr >= 2.0.0
|
|
|
027794d |
Requires: python2-prettytable >= 0.7.1
|
|
|
027794d |
Requires: python-simplejson >= 3.5.1
|
|
|
027794d |
Requires: python2-six >= 1.10.0
|
|
Mark McLoughlin |
acbee3d |
|
|
|
0a09127 |
%description -n python2-%{sname}
|
|
|
027794d |
%{common_desc}
|
|
Mark McLoughlin |
acbee3d |
|
|
|
0a09127 |
%if 0%{?with_python3}
|
|
|
0a09127 |
%package -n python3-%{sname}
|
|
|
0a09127 |
Summary: Python API and CLI for OpenStack Nova
|
|
|
0a09127 |
%{?python_provide:%python_provide python3-novaclient}
|
|
|
0a09127 |
|
|
|
0a09127 |
BuildRequires: python3-devel
|
|
|
0a09127 |
BuildRequires: python3-pbr
|
|
|
0a09127 |
BuildRequires: python3-setuptools
|
|
|
0a09127 |
|
|
|
bdbb334 |
Requires: python3-babel >= 2.3.4
|
|
|
bdbb334 |
Requires: python3-iso8601 >= 0.1.11
|
|
|
027794d |
Requires: python3-keystoneauth1 >= 3.3.0
|
|
|
027794d |
Requires: python3-oslo-i18n >= 3.15.3
|
|
|
027794d |
Requires: python3-oslo-serialization >= 2.18.0
|
|
|
027794d |
Requires: python3-oslo-utils >= 3.33.0
|
|
|
bdbb334 |
Requires: python3-pbr >= 2.0.0
|
|
|
bdbb334 |
Requires: python3-prettytable >= 0.7.1
|
|
|
027794d |
Requires: python3-simplejson >= 3.5.1
|
|
|
027794d |
Requires: python3-six >= 1.10.0
|
|
|
0a09127 |
|
|
|
0a09127 |
%description -n python3-%{sname}
|
|
|
027794d |
%{common_desc}
|
|
|
0a09127 |
%endif
|
|
|
0a09127 |
|
|
Mark McLoughlin |
acbee3d |
%package doc
|
|
Mark McLoughlin |
acbee3d |
Summary: Documentation for OpenStack Nova API Client
|
|
Mark McLoughlin |
acbee3d |
|
|
|
027794d |
BuildRequires: python2-sphinx
|
|
|
027794d |
BuildRequires: python2-openstackdocstheme
|
|
|
027794d |
BuildRequires: python2-oslo-utils
|
|
|
027794d |
BuildRequires: python2-keystoneauth1
|
|
|
027794d |
BuildRequires: python2-oslo-serialization
|
|
|
027794d |
BuildRequires: python2-prettytable
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
%description doc
|
|
|
027794d |
%{common_desc}
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
This package contains auto-generated documentation.
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
%prep
|
|
|
bdbb334 |
%autosetup -n %{name}-%{upstream_version} -S git
|
|
Mark McLoughlin |
acbee3d |
|
|
Jakub Ruzicka |
fe58fbe |
# Let RPM handle the requirements
|
|
|
027794d |
rm -rf {,test-}requirements.txt
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
%build
|
|
|
0a09127 |
%py2_build
|
|
|
0a09127 |
%if 0%{?with_python3}
|
|
|
0a09127 |
%py3_build
|
|
|
0a09127 |
%endif
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
%install
|
|
|
0a09127 |
%if 0%{?with_python3}
|
|
|
0a09127 |
%py3_install
|
|
|
0a09127 |
mv %{buildroot}%{_bindir}/nova %{buildroot}%{_bindir}/nova-%{python3_version}
|
|
|
0a09127 |
ln -s ./nova-%{python3_version} %{buildroot}%{_bindir}/nova-3
|
|
|
0a09127 |
# Delete tests
|
|
|
0a09127 |
rm -fr %{buildroot}%{python3_sitelib}/novaclient/tests
|
|
|
0a09127 |
%endif
|
|
|
0a09127 |
|
|
|
0a09127 |
%py2_install
|
|
|
0a09127 |
mv %{buildroot}%{_bindir}/nova %{buildroot}%{_bindir}/nova-%{python2_version}
|
|
|
0a09127 |
ln -s ./nova-%{python2_version} %{buildroot}%{_bindir}/nova-2
|
|
|
0a09127 |
|
|
|
0a09127 |
ln -s ./nova-2 %{buildroot}%{_bindir}/nova
|
|
Mark McLoughlin |
acbee3d |
|
|
Alan Pevec |
697e4ca |
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
Jakub Ruzicka |
25df862 |
install -pm 644 tools/nova.bash_completion \
|
|
Jakub Ruzicka |
25df862 |
%{buildroot}%{_sysconfdir}/bash_completion.d/nova
|
|
Alan Pevec |
697e4ca |
|
|
Mark McLoughlin |
acbee3d |
# Delete tests
|
|
|
0a09127 |
rm -fr %{buildroot}%{python2_sitelib}/novaclient/tests
|
|
|
0a09127 |
|
|
|
bdbb334 |
%{__python2} setup.py build_sphinx -b html
|
|
|
bdbb334 |
%{__python2} setup.py build_sphinx -b man
|
|
Jakub Ruzicka |
25df862 |
|
|
|
bdbb334 |
install -p -D -m 644 doc/build/man/nova.1 %{buildroot}%{_mandir}/man1/nova.1
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
# Fix hidden-file-or-dir warnings
|
|
|
bdbb334 |
rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
|
|
Mark McLoughlin |
acbee3d |
|
|
|
0a09127 |
%files -n python2-%{sname}
|
|
|
0a09127 |
%license LICENSE
|
|
Mark McLoughlin |
acbee3d |
%doc README.rst
|
|
|
0a09127 |
%{python2_sitelib}/%{sname}
|
|
|
dd5c751 |
%{python2_sitelib}/*.egg-info
|
|
Alan Pevec |
697e4ca |
%{_sysconfdir}/bash_completion.d
|
|
Jakub Ruzicka |
25df862 |
%{_mandir}/man1/nova.1.gz
|
|
|
0a09127 |
%{_bindir}/nova
|
|
|
0a09127 |
%{_bindir}/nova-2
|
|
|
0a09127 |
%{_bindir}/nova-%{python2_version}
|
|
|
0a09127 |
|
|
|
0a09127 |
|
|
|
0a09127 |
%if 0%{?with_python3}
|
|
|
0a09127 |
%files -n python3-%{sname}
|
|
|
0a09127 |
%license LICENSE
|
|
|
0a09127 |
%doc README.rst
|
|
|
0a09127 |
%{python3_sitelib}/%{sname}
|
|
|
0a09127 |
%{python3_sitelib}/*.egg-info
|
|
|
0a09127 |
%{_sysconfdir}/bash_completion.d
|
|
|
0a09127 |
%{_mandir}/man1/nova.1.gz
|
|
|
0a09127 |
%{_bindir}/nova-3
|
|
|
0a09127 |
%{_bindir}/nova-%{python3_version}
|
|
|
0a09127 |
%endif
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
%files doc
|
|
|
bdbb334 |
%doc doc/build/html
|
|
|
0a09127 |
%license LICENSE
|
|
Mark McLoughlin |
acbee3d |
|
|
Mark McLoughlin |
acbee3d |
%changelog
|
|
|
027794d |
* Tue Jun 05 2018 RDO <dev@lists.rdoproject.org> 1:10.1.0-1
|
|
|
027794d |
- Update to 10.1.0
|
|
Mark McLoughlin |
acbee3d |
|