- Add cloud dependencies

This commit is contained in:
Oyvind Albrigtsen 2021-02-10 12:11:47 +01:00
parent de1653b7d9
commit 17df3dbdfc

View File

@ -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}