File python-glance_store.spec of Package python-glance_store
#
# spec file for package python-glance_store
#
# Copyright (c) 2024 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 https://bugs.opensuse.org/
#
Name: python-glance_store
Version: 2.4.0
Release: 0
Summary: OpenStack Image Service Store Library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/glance_store
Source0: https://files.pythonhosted.org/packages/source/g/glance_store/glance_store-2.4.0.tar.gz
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-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
%description
Glance store library.
%package -n python3-glance_store
Summary: OpenStack Image Service Store Library
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.
%prep
%autosetup -p1 -n glance_store-2.4.0
%py_req_cleanup
%build
%{py3_build}
PBR_VERSION=2.4.0 %sphinx_build -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{py3_install}
%fdupes %{buildroot}%{python3_sitelib}
mv %{buildroot}/%{_prefix}/%{_sysconfdir} %{buildroot}/%{_sysconfdir}
%check
%{openstack_stestr_run}
%pre
%openstack_pre_user_group_create glance glance /sbin/nologin
%files -n python3-glance_store
%doc README.rst ChangeLog
%license LICENSE
%{python3_sitelib}/glance_store*
%{python3_sitelib}/*.egg-info
%{_bindir}/glance-rootwrap
%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
%changelog