File python-mistralclient.spec of Package python-mistralclient

# spec file for package python-mistralclient
# 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-mistralclient
Version:        3.7.0
Release:        0
Summary:        Python API and CLI for OpenStack Mistral
License:        Apache-2.0
Group:          Development/Languages/Python
URL:  {name}
BuildRequires:  openstack-macros
BuildRequires:  python-PyYAML
BuildRequires:  python-devel
BuildRequires:  python-fixtures
BuildRequires:  python-mock
BuildRequires:  python-nose
BuildRequires:  python-openstackclient
BuildRequires:  python-oslotest
BuildRequires:  python-osprofiler
BuildRequires:  python-pbr
BuildRequires:  python-requests-mock
BuildRequires:  python-setuptools
BuildRequires:  python-testrepository
BuildRequires:  python-testtools
Requires:       python-PyYAML
Requires:       python-cliff
Requires:       python-keystoneclient
Requires:       python-os-client-config
Requires:       python-osc-lib
Requires:       python-oslo.i18n
Requires:       python-oslo.utils
Requires:       python-osprofiler
Requires:       python-requests
Requires:       python-six
Requires:       python-stevedore
BuildArch:      noarch

Client library for Mistral built on the Mistral API. It provides a Python API
(the mistralclient module) and a command-line tool (mistral).

%package doc
Summary:        Documentation for OpenStack Mistral API client libary
Group:          Documentation/HTML
BuildRequires:  python-Sphinx
BuildRequires:  python-openstackdocstheme

%description doc
Client library for Mistral built on the Mistral API. It provides a Python API
(the mistralclient module) and a command-line tool (mistral).
This package contains the documentation.

%autosetup -p1 -n %{name}-%{version}
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg


# Build HTML docs and man page
%{__python2} build_sphinx -b man
rm -rf html/.{doctrees,buildinfo}

#man pages
install -p -D -m 644 doc/build/man/mistral_client.1 %{buildroot}%{_mandir}/man1/mistral_client.1

find . -type f -name *.pyc -delete
PYTHONPATH=. nosetests mistralclient/tests/unit

%license LICENSE

%files doc
%license LICENSE

openSUSE Build Service is sponsored by