summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..586ae08
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+# Run as
+# make -f <cloned_repodir>/.copr/Makefile srpm outdir="<outdir>" spec="<spec_path>"
+srpm:
+ echo $(outdir)
+ rpmbuild --eval '%undefine scl' \
+ --define "_sourcedir $(shell pwd)" \
+ --define "_srcrpmdir $(shell pwd)" \
+ --define "_rpmdir $(shell pwd)" \
+ --define "_topdir $(shell pwd)" \
+ --define "_builddir $(shell pwd)/build" \
+ -bs "./bogofilter.spec"