2013-01-28 16:04:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-apache-libcloud
|
|
|
|
#
|
2015-11-04 17:49:31 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-01-28 16:04:17 +01:00
|
|
|
#
|
|
|
|
# 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/
|
2013-07-01 20:20:32 +02:00
|
|
|
#
|
2013-01-28 16:04:17 +01:00
|
|
|
|
2013-10-24 12:58:47 +02:00
|
|
|
|
2013-01-28 16:09:52 +01:00
|
|
|
Name: python-apache-libcloud
|
2016-10-28 18:22:48 +02:00
|
|
|
Version: 1.3.0
|
2013-10-24 12:58:47 +02:00
|
|
|
Release: 0
|
2013-07-01 20:20:32 +02:00
|
|
|
Summary: Abstract away differences among multiple cloud provider APIs
|
2013-10-24 12:58:47 +02:00
|
|
|
License: Apache-2.0
|
2013-07-01 20:20:32 +02:00
|
|
|
Group: System/Monitoring
|
2013-10-24 12:58:47 +02:00
|
|
|
Url: https://libcloud.apache.org
|
2013-07-01 20:20:32 +02:00
|
|
|
Source0: http://pypi.python.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.bz2
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python
|
2013-10-24 12:58:47 +02:00
|
|
|
BuildRequires: python-setuptools
|
2013-07-01 21:11:22 +02:00
|
|
|
BuildRequires: python-xml
|
2014-06-25 22:43:50 +02:00
|
|
|
BuildRequires: python-lxml
|
2015-12-29 14:51:42 +01:00
|
|
|
BuildRequires: python-backports.ssl_match_hostname
|
2013-07-01 20:20:32 +02:00
|
|
|
Requires: python-simplejson
|
2014-06-25 22:43:50 +02:00
|
|
|
Requires: python-lxml
|
2015-12-29 14:51:42 +01:00
|
|
|
Requires: python-backports.ssl_match_hostname
|
2013-07-01 20:20:32 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): %insserv_prereq
|
2013-01-28 16:09:52 +01:00
|
|
|
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()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2013-01-28 16:04:17 +01:00
|
|
|
|
|
|
|
%description
|
2013-07-01 20:20:32 +02:00
|
|
|
Apache Libcloud is a standard Python library that abstracts away
|
|
|
|
differences among multiple cloud provider APIs.
|
2013-01-28 16:04:17 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n apache-libcloud-%{version}
|
|
|
|
|
|
|
|
%build
|
2013-07-01 20:10:20 +02:00
|
|
|
python setup.py build
|
2013-01-28 16:04:17 +01:00
|
|
|
|
|
|
|
%install
|
2013-07-01 20:10:20 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2013-07-01 20:20:32 +02:00
|
|
|
%fdupes %{buildroot}%{python_sitelib}/libcloud/test/
|
2013-01-28 16:04:17 +01:00
|
|
|
|
2013-01-28 16:09:52 +01:00
|
|
|
%files
|
2013-07-01 20:20:32 +02:00
|
|
|
%defattr(-,root,root)
|
2014-06-25 22:43:50 +02:00
|
|
|
%doc LICENSE CHANGES.rst README.rst
|
2013-01-28 16:04:17 +01:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|