File python-glance_store.spec of Package python-glance_store

# spec file for package python-glance_store
# Copyright (c) 2020 SUSE LLC
# 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.

# Please submit bugfixes or comments via

Name:           python-glance_store
Version:        2.3.0
Release:        0
Summary:        OpenStack Image Service Store Library
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  fdupes
BuildRequires:  openstack-macros
BuildRequires:  python3-boto3
BuildRequires:  python3-cinderclient
BuildRequires:  python3-debtcollector
BuildRequires:  python3-eventlet
BuildRequires:  python3-fixtures
BuildRequires:  python3-jsonschema
BuildRequires:  python3-keystoneclient
BuildRequires:  python3-mock
BuildRequires:  python3-os-brick
BuildRequires:  python3-oslo.concurrency
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.i18n
BuildRequires:  python3-oslo.serialization
BuildRequires:  python3-oslo.utils
BuildRequires:  python3-oslo.vmware
BuildRequires:  python3-oslotest
BuildRequires:  python3-python-subunit
BuildRequires:  python3-requests
BuildRequires:  python3-requests-mock
BuildRequires:  python3-six
BuildRequires:  python3-stestr
BuildRequires:  python3-stevedore
BuildRequires:  python3-swiftclient
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
BuildArch:      noarch

Glance store library.

%package -n python3-glance_store
Summary:        OpenStack Image Service Store Library
Group:          Development/Languages/Python
Requires:       python3-boto3
Requires:       python3-cinderclient
Requires:       python3-debtcollector
Requires:       python3-eventlet
Requires:       python3-httplib2
Requires:       python3-jsonschema
Requires:       python3-keystoneauth1
Requires:       python3-keystoneclient
Requires:       python3-os-brick
Requires:       python3-oslo.concurrency
Requires:       python3-oslo.config
Requires:       python3-oslo.i18n
Requires:       python3-oslo.privsep
Requires:       python3-oslo.rootwrap
Requires:       python3-oslo.serialization
Requires:       python3-oslo.utils
Requires:       python3-oslo.vmware
Requires:       python3-requests
Requires:       python3-six
Requires:       python3-stevedore
Requires:       python3-swiftclient

%description -n python3-glance_store
Glance store library.

This package contains the Python 3.x module.

%package -n python-glance_store-doc
Summary:        Documentation for OpenStack Image Service Store Library
Group:          Documentation/HTML
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme
BuildRequires:  python3-sphinxcontrib-apidoc

%description -n python-glance_store-doc
Documentation for the Glance store library.

%autosetup -p1 -n glance_store-2.3.0

PBR_VERSION=2.3.0 %sphinx_build -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}

%fdupes %{buildroot}%{python3_sitelib}
mv %{buildroot}/%{_prefix}/%{_sysconfdir} %{buildroot}/%{_sysconfdir}

PYTHON=python3 PYTHONPATH="." python3 -m stestr.cli run

%openstack_pre_user_group_create glance glance /sbin/nologin

%files -n python3-glance_store
%doc README.rst ChangeLog
%license LICENSE
%dir %attr(0750, root, glance) %{_sysconfdir}/glance
%dir %attr(0750, root, glance) %{_sysconfdir}/glance/rootwrap.d
%config %{_sysconfdir}/glance/rootwrap.d/glance_*_store.filters
%config %{_sysconfdir}/glance/rootwrap.conf

%files -n python-glance_store-doc
%doc doc/build/html
%license LICENSE