From c2d704e130392a44840fd67b1d8626d8c3be6ccc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 22 Mar 2022 12:44:03 +0100 Subject: [PATCH] Makefile: add convenience 'srpm' target Add a simple 'srpm' target that builds the src.rpm file for the current project. Partially reverts commit b2662eeebdb623395ca7d6ccacdd1c2746db7c42 (at least to bring the 'srpm' target back). --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 11d95ba..d661cbc 100644 --- a/Makefile +++ b/Makefile @@ -111,6 +111,13 @@ $(NODE_CACHE): $(NODE_MODULES_TEST) node-cache: $(NODE_CACHE) +# convenience target for developers +srpm: $(TARFILE) $(NODE_CACHE) $(SPEC) + rpmbuild -bs \ + --define "_sourcedir `pwd`" \ + --define "_srcrpmdir `pwd`" \ + $(SPEC) + # convenience target for developers rpm: $(TARFILE) $(NODE_CACHE) $(SPEC) mkdir -p "`pwd`/output"