3 %bcond_with doc # do build doc (missing deps)
4 %bcond_with tests # do perform "make test" (missing deps)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: Client library for OpenStack Compute API
9 Name: python-novaclient
13 Group: Libraries/Python
14 Source0: https://files.pythonhosted.org/packages/source/p/python-novaclient/%{name}-%{version}.tar.gz
15 # Source0-md5: 4be037d19ec5ab7967d51a445a0c29e3
16 URL: https://pypi.python.org/pypi/python-novaclient
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.714
20 BuildRequires: python-pbr >= 2.0.0
21 BuildRequires: python-setuptools
24 BuildRequires: python3-pbr >= 2.0.0
25 BuildRequires: python3-setuptools
27 Requires: python-babel >= 2.3.4
28 Requires: python-iso8601 >= 0.1.11
29 Requires: python-keystoneauth1 >= 3.0.1
30 Requires: python-oslo.i18n >= 2.1.0
31 Requires: python-oslo.serialization >= 1.10.0
32 Requires: python-oslo.utils >= 3.20.0
33 Requires: python-pbr >= 2.0.0
34 Requires: python-prettytable >= 0.7.1
35 Requires: python-simplejson >= 2.2.0
36 Requires: python-six >= 1.9.0
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 This is a client for the OpenStack Compute API. It provides a Python
42 API (the novaclient module) which implements 100% of the OpenStack
45 %package -n python3-novaclient
46 Summary: Client library for OpenStack Compute API
47 Group: Libraries/Python
48 Requires: python3-modules
50 %description -n python3-novaclient
51 This is a client for the OpenStack Compute API. It provides a Python
52 API (the novaclient module) which implements 100% of the OpenStack
55 %package -n novaclient
56 Summary: Client library OpenStack Compute API
59 Requires: python3-novaclient = %{version}-%{release}
61 Requires: %{name} = %{version}-%{release}
64 %description -n novaclient
65 This is a client for the OpenStack Compute API. It provides a
66 command-line script (nova) which implements 100% of the OpenStack
70 Summary: API documentation for Python novaclient module
71 Summary(pl.UTF-8): Dokumentacja API modułu Pythona novaclient
75 API documentation for Pythona novaclient module.
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API modułu Pythona novaclient.
85 %py_build %{?with_tests:test}
89 %py3_build %{?with_tests:test}
95 rm -rf _build/html/_sources
99 rm -rf $RPM_BUILD_ROOT
112 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog README.rst
118 %{py_sitescriptdir}/novaclient
119 %{py_sitescriptdir}/python_novaclient-%{version}-py*.egg-info
123 %files -n python3-novaclient
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog README.rst
126 %{py3_sitescriptdir}/novaclient
127 %{py3_sitescriptdir}/python_novaclient-%{version}-py*.egg-info
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog README.rst
133 %attr(755,root,root) %{_bindir}/nova
137 %defattr(644,root,root,755)
138 %doc doc/_build/html/*