File python-openstack.compute.spec of Package python-openstack.compute

#
# spec file for package python-openstack.compute
#
# Copyright (c) 2012 SUSE LINUX Products 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-openstack.compute
Version:        2.0a1_89c5c6a
Release:        0
Summary:        Client library for the OpenStack Compute API
License:        BSD-3-Clause
Group:          Development/Libraries/Python
Url:            https://github.com/jacobian/openstack.compute
Source:         jacobian-openstack.compute-89c5c6a.tar.gz
BuildRequires:  python-argparse
BuildRequires:  python-devel
BuildRequires:  python-distribute
BuildRequires:  python-httplib2
BuildRequires:  python-mock
BuildRequires:  python-nose
BuildRequires:  python-prettytable
Requires:       python-argparse
Requires:       python-httplib2
Requires:       python-prettytable
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif
%{py_requires}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%description
Client library for the OpenStack Compute API

%prep
%setup -q -n jacobian-openstack.compute-89c5c6a

%build
python setup.py build

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

%check
nosetests

%files
%defattr(-,root,root)
%doc LICENSE README.rst
%{_bindir}/openstack-compute
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by