summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorJimmy Tang <jtang@tchpc.tcd.ie>2013-03-11 16:22:37 +0100
committerJimmy Tang <jtang@tchpc.tcd.ie>2013-03-11 16:37:03 +0100
commit40ca1d4b3e5db2833aed30dbb4e9766466acbed5 (patch)
tree2bf68beb9a14228b044c354276a9d31f028763cd /packaging
parentFix up other places in makefile to use PYTHON variable (diff)
downloadansible-40ca1d4b3e5db2833aed30dbb4e9766466acbed5.tar.xz
ansible-40ca1d4b3e5db2833aed30dbb4e9766466acbed5.zip
Teach 'make rpm' to build on RHEL5/SL5 etc...
Diffstat (limited to 'packaging')
-rw-r--r--packaging/rpm/ansible.spec18
1 files changed, 18 insertions, 0 deletions
diff --git a/packaging/rpm/ansible.spec b/packaging/rpm/ansible.spec
index 64305291ae..7b03cd6b28 100644
--- a/packaging/rpm/ansible.spec
+++ b/packaging/rpm/ansible.spec
@@ -14,11 +14,19 @@ Source0: https://github.com/downloads/ansible/ansible/%{name}-%{version}.tar.gz
Url: http://ansible.github.com
BuildArch: noarch
+%if 0%{?rhel} <= 5
+BuildRequires: python26-devel
+
+Requires: python26-PyYAML
+Requires: python26-paramiko
+Requires: python26-jinja2
+%else
BuildRequires: python2-devel
Requires: PyYAML
Requires: python-paramiko
Requires: python-jinja2
+%endif
%description
@@ -32,8 +40,13 @@ are transferred to managed machines automatically.
Summary: Ansible fireball transport support
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+%if 0%{?rhel} <= 5
+Requires: python26-keyczar
+Requires: python26-zmq
+%else
Requires: python-keyczar
Requires: python-zmq
+%endif
%description fireball
@@ -44,8 +57,13 @@ multiple actions, but requires additional supporting packages.
%package node-fireball
Summary: Ansible fireball transport - node end support
Group: Development/Libraries
+%if 0%{?rhel} <= 5
+Requires: python26-keyczar
+Requires: python26-zmq
+%else
Requires: python-keyczar
Requires: python-zmq
+%endif
%description node-fireball