File python-os-brick.spec of Package python-os-brick
#
# spec file for package python-os-brick
#
# Copyright (c) 2022 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/
#
%global oldpython python
Name: python-os-brick
Version: 5.0.1
Release: 0
Summary: OpenStack Cinder brick library for managing local volume attaches
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/os-brick
Source0: https://files.pythonhosted.org/packages/source/o/os-brick/os-brick-5.0.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-Babel
BuildRequires: python3-castellan
BuildRequires: python3-ddt
BuildRequires: python3-eventlet
BuildRequires: python3-os-win
BuildRequires: python3-oslo.concurrency
BuildRequires: python3-oslo.i18n
BuildRequires: python3-oslo.log
BuildRequires: python3-oslo.privsep
BuildRequires: python3-oslo.service
BuildRequires: python3-oslo.utils
BuildRequires: python3-oslo.vmware
BuildRequires: python3-oslotest
BuildRequires: python3-pbr
BuildRequires: python3-python-subunit
BuildRequires: python3-reno
BuildRequires: python3-requests
BuildRequires: python3-six
BuildRequires: python3-stestr
BuildRequires: python3-tenacity
BuildRequires: python3-testscenarios
BuildRequires: python3-testtools
BuildArch: noarch
%description
OpenStack Cinder brick library for managing local volume attaches.
Features:
- Discovery of volumes being attached to a host for many transport protocols.
- Removal of volumes from a host.
%package -n python3-os-brick
Summary: OpenStack Cinder brick library for managing local volume attaches
Requires: %{oldpython}-os-brick-common
Requires: python3-Babel
Requires: python3-eventlet
Requires: python3-os-win
Requires: python3-oslo.concurrency
Requires: python3-oslo.i18n
Requires: python3-oslo.log
Requires: python3-oslo.privsep
Requires: python3-oslo.service
Requires: python3-oslo.utils
Requires: python3-requests
Requires: python3-six
Requires: python3-tenacity
%description -n python3-os-brick
OpenStack Cinder brick library for managing local volume attaches.
Features:
- Discovery of volumes being attached to a host for many transport protocols.
- Removal of volumes from a host.
This package contains the PYthon 3.x module.
%package -n python-os-brick-doc
Summary: Documentation for OpenStack os-brick library
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
%description -n python-os-brick-doc
OpenStack Cinder brick library for managing local volume attaches.
Features:
- Discovery of volumes being attached to a host for many transport protocols.
- Removal of volumes from a host.
This package contains the documentation.
%package -n python-os-brick-common
Summary: Common files for the OpenStack Cinder brick library
%description -n python-os-brick-common
Configuration files for the OpenStack Cinder brick library.
%prep
%autosetup -p1 -n os-brick-5.0.1
%py_req_cleanup
%build
%{py3_build}
# generate html docs
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{py3_install}
# move usr/etc to etc
mv %{buildroot}%{_prefix}%{_sysconfdir}/* %{buildroot}/%{_sysconfdir}/
%check
python3 -m stestr.cli run --concurrency=1
%files -n python3-os-brick
%license LICENSE
%doc README.rst ChangeLog
%{python3_sitelib}/os_brick
%{python3_sitelib}/*.egg-info
%files -n python-os-brick-common
%license LICENSE
%dir %{_sysconfdir}/rootwrap.d
%{_sysconfdir}/rootwrap.d/os-brick.filters
%files -n python-os-brick-doc
%license LICENSE
%doc doc/build/html
%changelog