File python-castellan.spec of Package python-castellan

# spec file for package python-castellan
# Copyright (c) 2016 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

%global sname castellan
Name:           python-castellan
Version:        0.4.0
Release:        0
Summary:        Generic Key Manager interface for OpenStack
License:        Apache-2.0
Group:          Developement/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python-barbicanclient >= 4.0.0
BuildRequires:  python-coverage >= 3.6
BuildRequires:  python-cryptography >= 1.0
BuildRequires:  python-oslo.config >= 3.14.0
BuildRequires:  python-oslo.log >= 1.14.0
BuildRequires:  python-oslotest >= 1.10.0
BuildRequires:  python-python-subunit >= 0.0.18
BuildRequires:  python-setuptools >= 16.0
BuildRequires:  python-testrepository >= 0.0.18
BuildRequires:  python-testscenarios >= 0.4
BuildRequires:  python-testtools >= 1.4.0
Requires:       python-Babel >= 2.3.4
Requires:       python-cryptography >= 1.0
Requires:       python-oslo.config >= 3.14.0
Requires:       python-oslo.context >= 2.6.0
Requires:       python-oslo.log >= 1.14.0
Requires:       python-oslo.policy >= 1.9.0
Requires:       python-oslo.serialization >= 1.10.0
Requires:       python-oslo.utils >= 3.16.0
BuildArch:      noarch

Generic Key Manager interface for OpenStack.

%package doc
Summary:        Documentation for castellan
Group:          Documentation
BuildRequires:  python-Sphinx
BuildRequires:  python-oslosphinx >= 2.5.0

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

%setup -q -n %{sname}-%{version}

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


# Functional tests require a working Keystone infrastructure
OS_TEST_PATH=./castellan/tests/unit %{__python2} test

%doc README.rst
%license LICENSE

%files doc
%license LICENSE
%doc doc/build/html