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: OpenStack Image API Client Library
9 Name: python-glanceclient
13 Group: Libraries/Python
14 Source0: https://files.pythonhosted.org/packages/source/p/python-glanceclient/%{name}-%{version}.tar.gz
15 # Source0-md5: 9504fa42fb8327f2d5a616bab8066006
16 URL: https://pypi.python.org/pypi/python-glanceclient
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-keystoneauth1 >= 3.0.1
29 Requires: python-oslo.i18n >= 2.1.0
30 Requires: python-oslo.utils >= 3.20.0
31 Requires: python-pbr >= 2.0.0
32 Requires: python-prettytable >= 0.7.1
33 Requires: python-pyOpenSSL >= 0.14
34 Requires: python-requests >= 2.14.2
35 Requires: python-six >= 1.9.0
36 Requires: python-warlock >= 1.0.1
37 Requires: python-wrapt >= 1.7.0
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 This is a client library for Glance built on the OpenStack Images API.
44 %package -n python3-glanceclient
45 Summary: OpenStack Image API Client Library
46 Group: Libraries/Python
47 Requires: python3-babel >= 2.3.4
48 Requires: python3-keystoneauth1 >= 3.0.1
49 Requires: python3-oslo.i18n >= 2.1.0
50 Requires: python3-oslo.utils >= 3.20.0
51 Requires: python3-pbr >= 2.0.0
52 Requires: python3-prettytable >= 0.7.1
53 Requires: python3-pyOpenSSL >= 0.14
54 Requires: python3-requests >= 2.14.2
55 Requires: python3-six >= 1.9.0
56 Requires: python3-warlock >= 1.0.1
57 Requires: python3-wrapt >= 1.7.0
59 %description -n python3-glanceclient
60 This is a client library for Glance built on the OpenStack Images API.
62 %package -n glanceclient
63 Summary: OpenStack Image API Client
64 Group: Libraries/Python
66 Requires: python3-glanceclient = %{version}-%{release}
68 Requires: %{name} = %{version}-%{release}
71 %description -n glanceclient
72 This is a client for Glance built on the OpenStack Images API.
75 Summary: API documentation for Python glanceclient module
76 Summary(pl.UTF-8): Dokumentacja API modułu Pythona glanceclient
80 API documentation for Pythona glanceclient module.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API modułu Pythona glanceclient.
90 %py_build %{?with_tests:test}
94 %py3_build %{?with_tests:test}
100 rm -rf _build/html/_sources
104 rm -rf $RPM_BUILD_ROOT
117 rm -rf $RPM_BUILD_ROOT
121 %defattr(644,root,root,755)
122 %doc AUTHORS ChangeLog README.rst
123 %{py_sitescriptdir}/glanceclient
124 %{py_sitescriptdir}/python_glanceclient-%{version}-py*.egg-info
128 %files -n python3-glanceclient
129 %defattr(644,root,root,755)
130 %doc AUTHORS ChangeLog README.rst
131 %{py3_sitescriptdir}/glanceclient
132 %{py3_sitescriptdir}/python_glanceclient-%{version}-py*.egg-info
135 %files -n glanceclient
136 %defattr(644,root,root,755)
137 %doc AUTHORS ChangeLog README.rst
138 %attr(755,root,root) %{_bindir}/glance
142 %defattr(644,root,root,755)
143 %doc doc/_build/html/*