From bbef981e4cddd98d978521a21fa20d9dd2332cee Mon Sep 17 00:00:00 2001 From: James Hogarth Date: Dec 20 2016 10:05:48 +0000 Subject: epel has python-xmltodict not python2-xmltodict --- diff --git a/python-winrm.spec b/python-winrm.spec index 250306e..4606333 100644 --- a/python-winrm.spec +++ b/python-winrm.spec @@ -18,7 +18,7 @@ Name: python-%{srcname} Version: 0.2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{sum} License: MIT @@ -27,7 +27,7 @@ Source0: https://github.com/%{gh_owner}/%{pypi_name}/archive/v%{version}. BuildArch: noarch BuildRequires: python2-devel -%if 0%{?with_python3} +%if 0%{?with_python3} BuildRequires: python3-devel %endif @@ -43,10 +43,14 @@ BuildRequires: python-six BuildRequires: python-requests BuildRequires: python-xmltodict %endif +%if 0%{?rhel} && 0%{?rhel} <= 6 +BuildRequires: python-mock +%else BuildRequires: python2-mock +%endif BuildRequires: python2-requests_ntlm -%if 0%{?with_python3} +%if 0%{?with_python3} BuildRequires: python3-six BuildRequires: python3-requests BuildRequires: python3-xmltodict @@ -60,7 +64,11 @@ This has the python libraries for interacting with Windows Remote Management %package -n python2-%{srcname} Summary: %{sum} +%if 0%{?fedora} Requires: python2-xmltodict +%else +Requires: python-xmltodict +%endif Requires: python2-requests_ntlm %{?python_provide:%python_provide python2-%{srcname}} @@ -118,6 +126,9 @@ This has the python libraries for interacting with Windows Remote Management %endif %changelog +* Tue Dec 20 2016 James Hogarth - 0.2.1-3 +- Fix broken requires for epel + * Mon Dec 19 2016 Miro HronĨok - 0.2.1-2 - Rebuild for Python 3.6