File python-castellan.spec of Package python-castellan

#
# spec file for package python-castellan
#
# Copyright (c) 2023 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-castellan
Version:        3.6.1
Release:        0
Summary:        Generic Key Manager interface for OpenStack
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://launchpad.net/castellan
Source0:        https://files.pythonhosted.org/packages/source/c/castellan/castellan-3.6.1.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-barbicanclient
BuildRequires:  python3-cryptography
BuildRequires:  python3-keystoneauth1
BuildRequires:  python3-oslo.config
BuildRequires:  python3-oslo.log
BuildRequires:  python3-oslotest
BuildRequires:  python3-reno
BuildRequires:  python3-setuptools
BuildRequires:  python3-stestr
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
BuildArch:      noarch

%description
Generic Key Manager interface for OpenStack.

%package -n python3-castellan
Summary:        Generic Key Manager interface for OpenStack
Requires:       python3-Babel
Requires:       python3-barbicanclient
Requires:       python3-cryptography
Requires:       python3-keystoneauth1
Requires:       python3-oslo.config
Requires:       python3-oslo.context
Requires:       python3-oslo.i18n
Requires:       python3-oslo.log
Requires:       python3-oslo.utils
Requires:       python3-requests
Requires:       python3-stevedore

%description -n python3-castellan
Generic Key Manager interface for OpenStack.

This package includes the Python 3.x module.

%package -n python-castellan-doc
Summary:        Documentation for castellan
Group:          Documentation/HTML
BuildRequires:  python3-Sphinx
BuildRequires:  python3-openstackdocstheme
BuildRequires:  python3-sphinxcontrib-svg2pdfconverter

%description -n python-castellan-doc
Castellan is a generic Key Manager interface for OpenStack.
This package contains the documentation

%prep
%autosetup -p1 -n castellan-3.6.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}

%check
python3 -m stestr.cli run

%files -n python3-castellan
%license LICENSE
%{python3_sitelib}/castellan
%{python3_sitelib}/*.egg-info

%files -n python-castellan-doc
%license LICENSE
%doc README.rst doc/build/html

%changelog
openSUSE Build Service is sponsored by