From 5f5b3ad8e2741f278e7a4b1aa1ec6d41876c3979 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 9 May 2011 11:03:20 +0000 Subject: [PATCH] add rule to create srpm --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.43.0