From 6feb97ae81f1435f4dd27a3c6fbc2f29ccf89b7f Mon Sep 17 00:00:00 2001 From: Dongqi Chen Date: Tue, 14 Apr 2020 10:31:53 +0800 Subject: [PATCH] CentOS 8: python-lefthandclient should use python3 Change python to python3 Story: 2006729 Task: 39387 Change-Id: If3fbbcc71b05bf5e5f36cb35472aabd6dd80f614 Signed-off-by: Dongqi Chen --- centos_iso_image.inc | 2 +- .../centos/python-lefthandclient.spec | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/centos_iso_image.inc b/centos_iso_image.inc index d58b59599..274401310 100644 --- a/centos_iso_image.inc +++ b/centos_iso_image.inc @@ -53,7 +53,7 @@ swtpm-tools #python-3parclient # python-lefthandclient -#python-lefthandclient +python3-lefthandclient diff --git a/storage-drivers/python-lefthandclient/centos/python-lefthandclient.spec b/storage-drivers/python-lefthandclient/centos/python-lefthandclient.spec index e615841d8..721374a31 100644 --- a/storage-drivers/python-lefthandclient/centos/python-lefthandclient.spec +++ b/storage-drivers/python-lefthandclient/centos/python-lefthandclient.spec @@ -1,4 +1,4 @@ -%define name python-lefthandclient +%define name python3-lefthandclient %define version 2.1.0 %define release 1 @@ -15,10 +15,10 @@ BuildArch: noarch Vendor: Kurt Martin Url: http://packages.python.org/python-lefthandclient -BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python2-pip -BuildRequires: python2-wheel +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel %description HPE LeftHand/StoreVirtual HTTP REST Client @@ -27,11 +27,11 @@ HPE LeftHand/StoreVirtual HTTP REST Client %setup -q %build -%{__python2} setup.py build -%py2_build_wheel +%{__python3} setup.py build +%py3_build_wheel %install -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} --record=INSTALLED_FILES +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} --record=INSTALLED_FILES mkdir -p $RPM_BUILD_ROOT/wheels install -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/