2012-10-31 10:14:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-glanceclient
|
|
|
|
#
|
2023-01-04 19:42:40 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-10-31 10:14:47 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-06 15:00:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-08 13:43:10 +00:00
|
|
|
#
|
|
|
|
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
Name: python-glanceclient
|
2023-03-07 06:58:16 +00:00
|
|
|
Version: 4.3.0
|
2012-10-31 10:14:47 +00:00
|
|
|
Release: 0
|
2021-05-02 17:21:40 +00:00
|
|
|
Epoch: 0
|
2016-08-01 18:53:21 +00:00
|
|
|
Summary: Python API and CLI for OpenStack Glance
|
2013-04-21 17:56:23 +00:00
|
|
|
License: Apache-2.0
|
2017-02-13 11:30:32 +00:00
|
|
|
Group: Development/Languages/Python
|
2021-05-02 17:21:40 +00:00
|
|
|
URL: https://docs.openstack.org/python-glanceclient
|
2023-03-07 06:58:16 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-glanceclient/python-glanceclient-4.3.0.tar.gz
|
2016-08-01 18:53:21 +00:00
|
|
|
BuildRequires: openstack-macros
|
2018-01-18 08:54:09 +00:00
|
|
|
BuildRequires: python3-PrettyTable >= 0.7.1
|
2020-10-09 19:13:45 +00:00
|
|
|
BuildRequires: python3-ddt
|
2018-09-01 09:07:53 +00:00
|
|
|
BuildRequires: python3-fixtures
|
|
|
|
BuildRequires: python3-keystoneclient
|
|
|
|
BuildRequires: python3-os-client-config
|
2018-02-12 09:55:40 +00:00
|
|
|
BuildRequires: python3-oslo.utils >= 3.33.0
|
2018-01-18 08:54:09 +00:00
|
|
|
BuildRequires: python3-pbr >= 2.0.0
|
2018-09-01 09:07:53 +00:00
|
|
|
BuildRequires: python3-pyOpenSSL >= 17.1.0
|
|
|
|
BuildRequires: python3-requests-mock
|
|
|
|
BuildRequires: python3-stestr
|
|
|
|
BuildRequires: python3-testscenarios
|
|
|
|
BuildRequires: python3-testtools
|
2018-01-18 08:54:09 +00:00
|
|
|
BuildRequires: python3-warlock >= 1.2.0
|
2012-10-31 10:14:47 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2016-08-01 18:53:21 +00:00
|
|
|
This is a client for the OpenStack Glance API. There's a Python API (the
|
|
|
|
glanceclient module), and a command-line script (glance). Each implements
|
|
|
|
100% of the OpenStack Glance API.
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2020-03-11 17:07:55 +00:00
|
|
|
%package -n python3-glanceclient
|
|
|
|
Summary: Python API and CLI for OpenStack Glance
|
|
|
|
Requires: python3-PrettyTable >= 0.7.1
|
|
|
|
Requires: python3-keystoneauth1 >= 3.6.2
|
|
|
|
Requires: python3-oslo.i18n >= 3.15.3
|
|
|
|
Requires: python3-oslo.utils >= 3.33.0
|
|
|
|
Requires: python3-pbr >= 2.0.0
|
|
|
|
Requires: python3-pyOpenSSL >= 17.1.0
|
|
|
|
Requires: python3-requests >= 2.14.2
|
|
|
|
Requires: python3-warlock >= 1.2.0
|
|
|
|
Requires: python3-wrapt >= 1.7.0
|
2020-03-23 12:25:27 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Obsoletes: python2-glanceclient < 2.18.0
|
|
|
|
%endif
|
2020-03-11 17:07:55 +00:00
|
|
|
|
|
|
|
%description -n python3-glanceclient
|
|
|
|
This is a client for the OpenStack Glance API. There's a Python API (the
|
|
|
|
glanceclient module), and a command-line script (glance). Each implements
|
|
|
|
100% of the OpenStack Glance API.
|
|
|
|
|
2018-01-18 08:54:09 +00:00
|
|
|
%package -n python-glanceclient-doc
|
2017-02-13 11:30:32 +00:00
|
|
|
Summary: Documentation for OpenStack Glance API Client
|
2018-01-18 08:54:09 +00:00
|
|
|
Group: Documentation/HTML
|
2019-10-09 12:59:26 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-openstackdocstheme
|
|
|
|
BuildRequires: python3-reno
|
|
|
|
BuildRequires: python3-sphinxcontrib-apidoc
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2018-01-18 08:54:09 +00:00
|
|
|
%description -n python-glanceclient-doc
|
2016-08-01 18:53:21 +00:00
|
|
|
This is a client for the OpenStack Glance API. There's a Python API (the
|
|
|
|
glanceclient module), and a command-line script (glance). Each implements
|
|
|
|
100% of the OpenStack Glance API.
|
|
|
|
This package contains auto-generated documentation.
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%prep
|
2023-03-07 06:58:16 +00:00
|
|
|
%autosetup -p1 -n python-glanceclient-4.3.0
|
2017-02-13 11:30:32 +00:00
|
|
|
%py_req_cleanup
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-11 17:07:55 +00:00
|
|
|
%py3_build
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2016-08-01 18:53:21 +00:00
|
|
|
# generate html docs
|
2023-03-07 06:58:16 +00:00
|
|
|
PBR_VERSION=4.3.0 %sphinx_build -b html doc/source doc/build/html
|
|
|
|
PBR_VERSION=4.3.0 %sphinx_build -b man doc/source doc/build/man
|
2016-08-01 18:53:21 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2019-10-09 12:59:26 +00:00
|
|
|
rm -rf doc/build/man/.{doctrees,buildinfo}
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2016-08-01 18:53:21 +00:00
|
|
|
%install
|
2020-03-11 17:07:55 +00:00
|
|
|
%py3_install
|
2016-08-01 18:53:21 +00:00
|
|
|
#man pages
|
|
|
|
install -p -D -m 644 doc/build/man/glance.1 %{buildroot}%{_mandir}/man1/glance.1
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2016-05-06 08:56:42 +00:00
|
|
|
%check
|
2023-03-07 06:58:16 +00:00
|
|
|
%{openstack_stestr_run}
|
2016-05-06 08:56:42 +00:00
|
|
|
|
2020-03-11 17:07:55 +00:00
|
|
|
%files -n python3-glanceclient
|
2016-08-01 18:53:21 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst ChangeLog
|
2020-03-11 17:07:55 +00:00
|
|
|
%{_bindir}/glance
|
|
|
|
%{_mandir}/man1/glance.1*
|
|
|
|
%{python3_sitelib}/glanceclient
|
|
|
|
%{python3_sitelib}/*.egg-info
|
2012-10-31 10:14:47 +00:00
|
|
|
|
2018-01-18 08:54:09 +00:00
|
|
|
%files -n python-glanceclient-doc
|
2016-08-01 18:53:21 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc doc/build/html
|
2012-10-31 10:14:47 +00:00
|
|
|
|
|
|
|
%changelog
|