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: 4.0.0
Release: 0
Summary: Generic Key Manager interface for OpenStack
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/castellan
Source0: https://files.pythonhosted.org/packages/source/c/castellan/castellan-4.0.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-barbicanclient
BuildRequires: python39-cryptography
BuildRequires: python39-keystoneauth1
BuildRequires: python39-oslo.config
BuildRequires: python39-oslo.log
BuildRequires: python39-oslotest
BuildRequires: python39-reno
BuildRequires: python39-requests
BuildRequires: python39-requests-mock
BuildRequires: python39-setuptools
BuildRequires: python39-stestr
BuildRequires: python39-testscenarios
BuildRequires: python39-testtools
BuildArch: noarch
%description
Generic Key Manager interface for OpenStack.
%package -n python39-castellan
Summary: Generic Key Manager interface for OpenStack
Requires: python3-barbicanclient
Requires: python39-Babel
Requires: python39-cryptography
Requires: python39-keystoneauth1
Requires: python39-oslo.config
Requires: python39-oslo.context
Requires: python39-oslo.i18n
Requires: python39-oslo.log
Requires: python39-oslo.utils
Requires: python39-requests
Requires: python39-stevedore
%description -n python39-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: python39-Sphinx
BuildRequires: python39-openstackdocstheme
BuildRequires: python39-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-4.0.0
%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
%{openstack_stestr_run}
%files -n python39-castellan
%license LICENSE
%{python3_sitelib}/castellan
%{python3_sitelib}/*.egg-info
%files -n python-castellan-doc
%license LICENSE
%doc README.rst doc/build/html
%changelog