diff --git a/resource-agents.spec b/resource-agents.spec index 6a3b0a8..d874bcc 100644 --- a/resource-agents.spec +++ b/resource-agents.spec @@ -74,12 +74,7 @@ BuildRequires: python-devel %endif %ifarch x86_64 -%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 -BuildRequires: python3-google-api-client python3-pyroute2 -%endif -%if 0%{?suse_version} -BuildRequires: python3-google-api-python-client -%endif +BuildRequires: ha-cloud-support %endif %if 0%{?fedora} || 0%{?centos} || 0%{?rhel} @@ -213,6 +208,9 @@ export CFLAGS %configure \ %if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 || 0%{?suse_version} PYTHON="%{__python3}" \ +%endif +%ifarch x86_64 + PYTHONPATH="%{_usr}/lib/fence-agents/support/google" \ %endif %{conf_opt_fatal} \ %if %{defined _unitdir}