- ha-cloud-support: only build aliyun-cli on x86_64

Resolves: RHEL-27929
  Resolves: RHEL-28097
This commit is contained in:
Oyvind Albrigtsen 2024-03-06 09:39:30 +01:00
parent 2eee8b9d92
commit c0a739031d

View File

@ -328,7 +328,10 @@ BuildRequires: libxslt
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 || 0%{?suse_version}
BuildRequires: python3-devel
# dependencies for building HA support subpackages
BuildRequires: python3-pip python3-wheel golang
BuildRequires: python3-pip python3-wheel
%ifarch x86_64
BuildRequires: golang
%endif
BuildRequires: python3-pycurl python3-requests
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7
BuildRequires: openwsman-python3
@ -429,6 +432,7 @@ sed -i.orig 's|FENCE_ZVM=1|FENCE_ZVM=0|' configure.ac
%endif
# aliyun-cli
%ifarch x86_64
tar zxf %SOURCE2000
pushd aliyun-cli-*
git init
@ -443,6 +447,7 @@ mv aliyun-openapi-meta-* aliyun-openapi-meta
mkdir -p ../support/aliyun/aliyun-cli
install -m 0755 out/aliyun ../support/aliyun/aliyun-cli/
popd
%endif
# support libs
%ifarch x86_64