add rule to create srpm
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 9 May 2011 11:03:20 +0000 (11:03 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Mon, 9 May 2011 11:03:20 +0000 (11:03 +0000)
Makefile

index 260ad09..0fa3839 100644 (file)
--- 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