Teach 'make rpm' to build on RHEL5/SL5 etc...

This commit is contained in:
Jimmy Tang 2013-03-11 15:22:37 +00:00
commit 40ca1d4b3e
2 changed files with 19 additions and 0 deletions

View file

@ -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 "#############################################"