File python-magnumclient.spec of Package python-magnumclient

#
# spec file for package python-magnumclient
#
# 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 http://bugs.opensuse.org/
#


Name:           python-magnumclient
Version:        2.0.0
Release:        0
Summary:        Client library for Magnum API
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://www.openstack.org/
Source:         https://pypi.python.org/packages/source/p/python-magnumclient/python-magnumclient-%{version}.tar.gz
BuildRequires:  python-PrettyTable
BuildRequires:  python-devel
BuildRequires:  python-fixtures
BuildRequires:  python-mock
BuildRequires:  python-oslo.i18n
BuildRequires:  python-oslo.serialization
BuildRequires:  python-oslo.utils
BuildRequires:  python-oslotest
BuildRequires:  python-pbr
BuildRequires:  python-python-subunit
BuildRequires:  python-six
BuildRequires:  python-testrepository
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-Babel >= 1.3
Requires:       python-PrettyTable >= 0.7
Requires:       python-keystoneauth1 >= 2.1.0
Requires:       python-os-client-config >= 1.13.1
Requires:       python-oslo.i18n >= 2.1.0
Requires:       python-oslo.serialization >= 1.10.0
Requires:       python-oslo.utils >= 3.5.0
Requires:       python-requests >= 2.8.1
Requires:       python-six >= 1.9.0
Requires:       python-stevedore >= 1.5.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is a client library for Magnum built on the Magnum API. It
provides a Python API (the magnumclient module) and a command-line
tool (magnum).

%prep
%setup -q -n python-magnumclient-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
python setup.py testr

%files
%defattr(-,root,root,-)
%doc LICENSE ChangeLog AUTHORS README.rst
%{python_sitelib}/*
%{_bindir}/magnum

%changelog
openSUSE Build Service is sponsored by