summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b633a707..9dfb0dac 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
RPM=$(HOME)/rpm
NAME = drakwizard
TAR = $(NAME).tar.bz2
+VERSION := $(shell sed -n 's/%define version //p' < $(NAME).spec)
+RELEASE := $(shell sed -n 's/%define release //p' < $(NAME).spec)
+RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
# TODO: get WIZ_HOME take care of usr prefix
WIZ_HOME=/usr/share/wizards/