Niels Abspoel 2013-07-01 18:10:20 +00:00 committed by Git OBS Bridge
parent 06ae083f44
commit 727ced0c36

View File

@ -1,7 +1,7 @@
#
# spec file for package python-apache-libcloud
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@ -13,30 +13,17 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-apache-libcloud
Version: 0.13.0
Release: 1
License: Apache-2.0
Summary: Abstract away differences among multiple cloud provider APIs
Url: https://libcloud.apache.org
Group: System/Monitoring
Source0: http://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2
BuildRequires: fdupes
%if 0%{?sles_version}
BuildRequires: python
Requires: python
%endif
BuildRequires: python-distribute
BuildRequires: python-unittest2
BuildRequires: python-mock
Requires: python-simplejson
%if 0%{?suse_version} >= 1210
BuildRequires: systemd
%endif
Requires(pre): %fillup_prereq
Requires(pre): %insserv_prereq
Release: 0
License: Apache License (2.0)
Summary: A standard Python library that abstracts away differences among multiple cloud provider APIs. For more information and documentation, please see http://libcloud.apacheorg
Url: http://libcloud.apache.org/
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@ -45,22 +32,47 @@ BuildArch: noarch
%endif
%description
Apache Libcloud is a standard Python library that abstracts away
differences among multiple cloud provider APIs.
Apache Libcloud - a unified interface into the cloud
====================================================
Apache Libcloud is a Python library which hides differences between different
cloud provider APIs and allows you to manage different cloud resources
through a unified and easy to use API.
Resource you can manage with Libcloud are divided in the following categories:
* Cloud Servers - services such as Amazon EC2 and Rackspace CloudServers
(libcloud.compute.*)
* Cloud Storage - services such as Amazon S3 and Rackspace CloudFiles
(libcloud.storage.*)
* Load Balancers as a Service, LBaaS (libcloud.loadbalancer.*)
* DNS as a Service, DNSaaS (libcloud.dns.*)
Apache libcloud is an Apache project, see <http://libcloud.apache.org> for
more information.
For API documentation and examples, see:
<http://libcloud.apache.org/getting-started.html>
Feedback
========
Please send feedback to the mailing list at <dev@libcloud.apache.org>,
or the JIRA at <https://issues.apache.org/jira/browse/LIBCLOUD>.
%prep
%setup -q -n apache-libcloud-%{version}
%build
python2.7 setup.py build
python setup.py build
%install
python2.7 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{python_sitelib}/libcloud/test/
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE
%defattr(-,root,root,-)
%doc README LICENSE CHANGES
%{python_sitelib}/*
%changelog