From 93e3d70f3bb2aa92c18983de22aa85f6f4a86034 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Feb 25 2016 20:12:17 +0000 Subject: And remember to apply the patch (but only on Fedora boxes... RHEL7's openssh-client is too old) --- diff --git a/ansible.spec b/ansible.spec index 8afb69d..72836de 100644 --- a/ansible.spec +++ b/ansible.spec @@ -23,7 +23,7 @@ Source1: ansible-unittests-%{version}.tar.xz Source100: get-unittests.sh # Patch control_path in the example config file to use %C so that it is shorter. -# Helps with path's that exceed the system length. +# Helps with paths that exceed the system length. # Upstream issue: https://github.com/ansible/ansible/issues/11536 Patch0: ansible-2.0.1.0-control_path.patch # Patch to utilize a newer jinja2 package on epel6 @@ -118,6 +118,12 @@ are transferred to managed machines automatically. %prep %setup -q +# RHEL7 doesn't have a recent enough ssh client to use this patch (needs to +# support %C in ControlPath). So only apply it on Fedora. +%if 0%{?fedora} +%patch0 -p1 +%endif + %if 0%{?rhel} == 6 %patch100 -p1 %endif