From c0a739031d81daa46b61964abf96e7fd2de612b3 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Wed, 6 Mar 2024 09:39:30 +0100 Subject: [PATCH] - ha-cloud-support: only build aliyun-cli on x86_64 Resolves: RHEL-27929 Resolves: RHEL-28097 --- fence-agents.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fence-agents.spec b/fence-agents.spec index 52cf55e..1f6b949 100644 --- a/fence-agents.spec +++ b/fence-agents.spec @@ -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