Accepting request 778169 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/778169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-apache-libcloud?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2020-02-25 15:00:52 +00:00 committed by Git OBS Bridge
commit be0904e53c
3 changed files with 52 additions and 0 deletions

44
gce_image_projects.patch Normal file
View File

@ -0,0 +1,44 @@
Index: apache-libcloud-2.8.0/libcloud/compute/drivers/gce.py
===================================================================
--- apache-libcloud-2.8.0.orig/libcloud/compute/drivers/gce.py
+++ apache-libcloud-2.8.0/libcloud/compute/drivers/gce.py
@@ -1803,20 +1803,35 @@ class GCENodeDriver(NodeDriver):
"rhel-8",
],
"suse-cloud": [
- "sles-11",
"sles-12",
"sles-15",
],
"suse-byos-cloud": [
- "sles-11-byos", "sles-12-byos",
- "sles-12-sp2-sap-byos", "sles-12-sp3-sap-byos",
- "suse-manager-proxy-byos", "suse-manager-server-byos"
+ "sles-11-byos",
+ "sles-12-byos",
+ "sles-15-byos",
+ "sles-12-sp1-sap-byos",
+ "sles-12-sp2-sap-byos",
+ "sles-12-sp3-sap-byos",
+ "sles-12-sp4-sap-byos",
+ "sles-12-sp5-sap-byos",
+ "sles-15-sap-byos",
+ "sles-15-sp1-sap-byos",
+ "sles-15-sp1-chost-byos",
+ "suse-manager-proxy",
+ "suse-manager-server"
],
"suse-sap-cloud": [
"sles-12-sp2-sap",
"sles-12-sp3-sap",
"sles-12-sp4-sap",
+ "sles-12-sp5-sap",
"sles-15-sap",
+ "sles-15-sp1-sap",
+ ],
+ "suse-sap-cal-cloud": [
+ "sles-12-sp1-sapcal",
+ "sles-12-sp3-sapcal",
],
"ubuntu-os-cloud": [
"ubuntu-1404-lts",

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 21 19:48:04 UTC 2020 - Sean Marlow <sean.marlow@suse.com>
- Add gce_image_projects.patch to update the current list of SUSE
image projects in GCE.
-------------------------------------------------------------------
Thu Jan 16 17:28:20 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -25,6 +25,7 @@ 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: gce_image_projects.patch
Patch2: ec2_create_node.patch
BuildRequires: %{python_module libvirt-python}
BuildRequires: %{python_module lockfile}
@ -57,6 +58,7 @@ differences among multiple cloud provider APIs.
%prep
%setup -q -n apache-libcloud-%{version}
%patch1 -p1
%patch2 -p1
sed -i '/^#!/d' demos/gce_demo.py
chmod a-x demos/gce_demo.py