Add BUILDOPTS to srpm target
authorMarco Yuen <marcoy@gmail.com>
Wed, 14 Dec 2011 20:16:03 +0000 (15:16 -0500)
committerMarco Yuen <marcoy@gmail.com>
Wed, 14 Dec 2011 20:16:03 +0000 (15:16 -0500)
Makefile

index b5d28e8..9bd1e06 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ trees: sources
         rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bp --target $(PREPARCH) $(SPECFILE)
 
 srpm: sources
-        rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE)
+        rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps $(BUILDOPTS) -bs $(SPECFILE)
 
 TARGET ?= $(shell uname -m)
 rpm: sources