File python3-apache-libcloud.spec of Package python3-apache-libcloud

#
# spec file for package python3-apache-libcloud
#
# Copyright (c) 2015 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:           python3-apache-libcloud
Version:        0.17.0
Release:        0
Summary:        Abstract away differences among multiple cloud provider APIs
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://libcloud.apache.org
Source0:        http://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2
Patch0:         python3-apache-libcloud-ssl_match_hostname.patch
%if 0%{?suse_version}
BuildRequires:  fdupes
BuildRequires:  python3-xml
%endif
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-simplejson
%if %{defined fedora}
Provides:       python3-libcloud
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Apache Libcloud is a standard Python library that abstracts away 
differences among multiple cloud provider APIs.

%prep
%setup -q -n apache-libcloud-%{version}
%patch0 -p1

%build
python3 setup.py build

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

%if 0%{?suse_version}
%fdupes %{buildroot}%{python3_sitelib}/libcloud/test/
%endif

%files
%defattr(-,root,root)
%doc LICENSE CHANGES.rst README.rst
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by