summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJimmy Tang <jtang@tchpc.tcd.ie>2013-03-11 15:22:37 +0000
committerJimmy Tang <jtang@tchpc.tcd.ie>2013-03-11 15:37:03 +0000
commit40ca1d4b3e5db2833aed30dbb4e9766466acbed5 (patch)
tree2bf68beb9a14228b044c354276a9d31f028763cd /Makefile
parent8c6caa2762988eb7aa3b2549d98cb7a25dc2e5e3 (diff)
downloadansible-40ca1d4b3e5db2833aed30dbb4e9766466acbed5.tar.gz
Teach 'make rpm' to build on RHEL5/SL5 etc...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3893b69332..5a96067cde 100644
--- a/Makefile
+++ b/Makefile
@@ -154,6 +154,7 @@ rpm: rpmcommon
--define "_specdir $(RPMSPECDIR)" \
--define "_sourcedir %{_topdir}" \
--define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
+ --define "__python `which $(PYTHON)`" \
-ba rpm-build/$(NAME).spec
@rm -f rpm-build/$(NAME).spec
@echo "#############################################"