From: Thierry Parmentelat Date: Mon, 9 May 2011 11:03:20 +0000 (+0000) Subject: add rule to create srpm X-Git-Url: http://git.onelab.eu/?p=nodemanager-topo.git;a=commitdiff_plain;h=5f5b3ad8e2741f278e7a4b1aa1ec6d41876c3979 add rule to create srpm --- diff --git a/Makefile b/Makefile index 260ad09..0fa3839 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,10 @@ +PWD=$(shell pwd) +RPMDIRDEFS = --define "_sourcedir $(PWD)" --define "_builddir $(PWD)" --define "_srcrpmdir $(PWD)" --define "_rpmdir $(PWD)" + +SPECFILE = NodeManager-topo.spec + +srpm: + rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE) + rpm: rpmbuild $(RPMDEFS) --define '_sourcedir $(PWD)' -ba NodeManager-topo.spec