c5b3e8b2d6
- Cleanup RPM warnings. - Add image_projects.patch with updated list of latest image projects. A patch was accepted upstream many months ago to fix the list but it has never made it to a new version. And now that patch is out of date. Suggest we keep a patch of image projects to ensure the list is up-to-date. https://github.com/apache/libcloud/pull/1143 OBS-URL: https://build.opensuse.org/request/show/629282 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apache-libcloud?expand=0&rev=79
68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-apache-libcloud
|
|
#
|
|
# Copyright (c) 2018 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-apache-libcloud
|
|
Version: 2.3.0
|
|
Release: 0
|
|
Summary: Abstraction over multiple cloud provider APIs
|
|
License: Apache-2.0
|
|
Group: System/Monitoring
|
|
URL: https://libcloud.apache.org
|
|
Source0: https://files.pythonhosted.org/packages/source/a/apache-libcloud/apache-libcloud-%{version}.tar.gz
|
|
Patch1: image_projects.patch
|
|
BuildRequires: %{python_module lxml}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module xml}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-backports.ssl_match_hostname
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python2
|
|
Requires: python-lxml
|
|
Requires: python-requests
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Requires: python2
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Apache Libcloud is a standard Python library that abstracts away
|
|
differences among multiple cloud provider APIs.
|
|
|
|
%prep
|
|
%setup -q -n apache-libcloud-%{version}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
find %{buildroot} -name '*.DS_Store' -delete
|
|
find %{buildroot} -name '*.json' -size 0 -delete
|
|
find %{buildroot} -name '*.pem' -size 0 -delete
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CHANGES.rst README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|