File python-oslo.privsep.spec of Package python-oslo.privsep

# spec file for package python-oslo.privsep
# 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-oslo.privsep
Version:        1.29.2
Release:        0
Summary:        OpenStack library for privilege separation
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python-devel
BuildRequires:  python2-Sphinx
BuildRequires:  python2-cffi
BuildRequires:  python2-eventlet
BuildRequires:  python2-greenlet
BuildRequires:  python2-mock
BuildRequires:  python2-msgpack
BuildRequires:  python2-openstackdocstheme
BuildRequires:  python2-oslo.config
BuildRequires:  python2-oslo.i18n
BuildRequires:  python2-oslo.log
BuildRequires:  python2-oslo.utils
BuildRequires:  python2-oslotest
BuildRequires:  python2-pbr
BuildRequires:  python2-setuptools
BuildRequires:  python2-stestr
BuildRequires:  python3-Sphinx
BuildRequires:  python3-cffi
BuildRequires:  python3-devel
BuildRequires:  python3-eventlet
BuildRequires:  python3-greenlet
BuildRequires:  python3-mock
BuildRequires:  python3-msgpack
BuildRequires:  python3-openstackdocstheme
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.i18n
BuildRequires:  python3-oslo.log
BuildRequires:  python3-oslo.utils
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-setuptools
BuildRequires:  python3-stestr
Requires:       python-cffi
Requires:       python-eventlet
Requires:       python-greenlet
Requires:       python-msgpack
Requires:       python-oslo.config
Requires:       python-oslo.i18n
Requires:       python-oslo.log
Requires:       python-oslo.utils
BuildArch:      noarch
BuildRequires:  python-enum34
Requires:       python-enum34
%if 0%{?suse_version}
Requires(post): update-alternatives
Requires(postun): update-alternatives
# on RDO, update-alternatives is in chkconfig
Requires(post): chkconfig
Requires(postun): chkconfig

OpenStack library for privilege separation

%package -n python-oslo.privsep-doc
Summary:        oslo.privsep documentation
Group:          Development/Languages/Python
Requires:       %{name} = %{version}

%description -n python-oslo.privsep-doc
Documentation for oslo.privsep

%autosetup -p1 -n oslo.privsep-1.29.2
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg

# generate html docs
%{__python2} build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}

%python_clone -a %{buildroot}%{_bindir}/privsep-helper

%python_install_alternative privsep-helper

%python_uninstall_alternative privsep-helper

%python_exec -m stestr.cli run

%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/privsep-helper

%files -n python-oslo.privsep-doc
%doc doc/build/html

openSUSE Build Service is sponsored by