File python-os-brick.spec of Package python-os-brick
#
# spec file for package python-os-brick
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python-os-brick
Version: 2.5.0
Release: 0
Summary: OpenStack Cinder brick library for managing local volume attaches
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/os-brick
Source0: https://files.pythonhosted.org/packages/source/o/os-brick/os-brick-2.5.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-Babel
BuildRequires: python-castellan
BuildRequires: python-ddt
BuildRequires: python-devel
BuildRequires: python-eventlet
BuildRequires: python-os-testr
BuildRequires: python-os-win
BuildRequires: python-oslo.concurrency
BuildRequires: python-oslo.i18n
BuildRequires: python-oslo.log
BuildRequires: python-oslo.privsep
BuildRequires: python-oslo.service
BuildRequires: python-oslo.utils
BuildRequires: python-oslo.vmware
BuildRequires: python-oslotest
BuildRequires: python-pbr
BuildRequires: python-python-subunit
BuildRequires: python-reno
BuildRequires: python-requests
BuildRequires: python-retrying
BuildRequires: python-six
BuildRequires: python-testrepository
BuildRequires: python-testscenarios
BuildRequires: python-testtools
Requires: python-Babel
Requires: python-eventlet
Requires: python-os-win
Requires: python-oslo.concurrency
Requires: python-oslo.i18n
Requires: python-oslo.log
Requires: python-oslo.privsep
Requires: python-oslo.service
Requires: python-oslo.utils
Requires: python-requests
Requires: python-retrying
Requires: python-six
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 doc
Summary: Documentation for OpenStack os-brick library
Group: Development/Languages/Python
BuildRequires: python-Sphinx
BuildRequires: python-openstackdocstheme
%description 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.
%prep
%autosetup -p1 -n os-brick-2.5.0
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%{py2_build}
# generate html docs
%{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
%{py2_install}
# move usr/etc to etc
mv %{buildroot}%{_prefix}%{_sysconfdir}/* %{buildroot}/%{_sysconfdir}/
%check
stestr run
%files
%license LICENSE
%doc README.rst ChangeLog
%{python2_sitelib}/os_brick
%{python2_sitelib}/*.egg-info
%dir %{_sysconfdir}/rootwrap.d
%{_sysconfdir}/rootwrap.d/os-brick.filters
%files doc
%license LICENSE
%doc doc/build/html
%changelog