summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2006-10-15 09:45:55 +0000
committerAvi Kivity <avi@qumranet.com>2006-10-15 09:45:55 +0000
commitbad4e19e518a633c8dea1d83273815017f908901 (patch)
tree7d5613f7634673a5dd3ba8c1bd017618b17a7e71 /Makefile
parent77754e0af49c81a4051477a18aaad0ee6365896d (diff)
kvm: rpm for userspace
package named "kvm" binary /usr/bin/kvm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7cc1aff5..fedb28b5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
+rpmrelease = devel
.PHONY: kernel user qemu
@@ -7,4 +8,14 @@ all: kernel user qemu
qemu kernel user:
$(MAKE) -C $@
-qemu: user \ No newline at end of file
+qemu: user
+
+tmpspec = .tmp.kvm.spec
+
+rpm: user qemu
+ mkdir -p BUILD RPMS/$$(uname -i)
+ sed 's/^Release:.*/Release: $(rpmrelease)/' kvm.spec > $(tmpspec)
+ rpmbuild --define="kverrel $$(uname -r)" \
+ --define="objdir $$(pwd)" \
+ --define="_topdir $$(pwd)" \
+ -bb $(tmpspec)