diff --git a/fence-agents.spec b/fence-agents.spec index 58d662a..32b0f83 100644 --- a/fence-agents.spec +++ b/fence-agents.spec @@ -38,16 +38,25 @@ Patch2: 0002-Build-without-openwsman-installed.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_version} -BuildRequires: %{python_version}-google-api-python-client -BuildRequires: %{python_version}-keystoneclient -BuildRequires: %{python_version}-novaclient -BuildRequires: %{python_version}-oauth2client -BuildRequires: %{python_version}-pexpect -BuildRequires: %{python_version}-pycurl -BuildRequires: %{python_version}-requests -BuildRequires: %{python_version}-xml %if %{python_version} == "python3" +BuildRequires: python3-google-api-python-client +BuildRequires: python3-keystoneclient +BuildRequires: python3-novaclient +BuildRequires: python3-oauth2client BuildRequires: python3-openwsman +BuildRequires: python3-pexpect +BuildRequires: python3-pycurl +BuildRequires: python3-requests +BuildRequires: python3-xml +%else +BuildRequires: python-google-api-python-client +BuildRequires: python-keystoneclient +BuildRequires: python-novaclient +BuildRequires: python-oauth2client +BuildRequires: python-pexpect +BuildRequires: python-pycurl +BuildRequires: python-requests +BuildRequires: python-xml %endif BuildRequires: autoconf BuildRequires: automake @@ -63,9 +72,15 @@ BuildRequires: perl-Net-Telnet BuildRequires: pkg-config BuildRequires: xz -Requires: %{python_version}-pexpect -Requires: %{python_version}-pycurl -Requires: %{python_version}-requests +%if %{python_version} == "python3" +Requires: python3-pexpect +Requires: python3-pycurl +Requires: python3-requests +%else +Requires: python-pexpect +Requires: python-pycurl +Requires: python-requests +%endif Requires: net-snmp Requires: openssh Requires: perl-Net-Telnet