summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3e0e157..9e79fc2 100644
--- a/Makefile
+++ b/Makefile
@@ -39,5 +39,8 @@ test: ${BUILD-DIR}
ninja -C ${BUILD-DIR} $@
.PHONY: rpm
-rpm: dist
- rpmbuild -ba ${BUILD-DIR}/libnvme.spec
+rpm: ${BUILD-DIR}
+ git archive --format=tar HEAD > libnvme.tar
+ tar rf libnvme.tar ${BUILD-DIR}/libnvme.spec
+ gzip -f -9 libnvme.tar
+ rpmbuild -ta libnvme.tar.gz -v