From f84c907c021df4a9f58d3b779496a18b7ad0c6a7a1b9a8f857d7315d6c1b934a Mon Sep 17 00:00:00 2001 From: Kristoffer Gronlund Date: Mon, 25 Jun 2018 14:55:47 +0000 Subject: [PATCH] use python-, not python2- for leap 42 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/fence-agents?expand=0&rev=95 --- fence-agents.spec | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) 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