Don't embed %dist into VERSION when making git tag names hwdata-0.235-1
authorAdam Jackson <ajax@redhat.com>
Thu, 23 Aug 2012 17:43:43 +0000 (13:43 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 23 Aug 2012 17:43:43 +0000 (13:43 -0400)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Makefile

index 76665e894fe5ea4d5c88fd2706f88e98fc274393..c273e8e8187dc6c664e87542d71b44a8f139c91f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 NAME=$(shell awk '/Name:/ { print $$2 }' hwdata.spec)
 VERSION=$(shell awk '/Version:/ { print $$2 }' hwdata.spec)
-RELEASE=$(shell rpm -q --specfile --qf "%{release}" hwdata.spec)
+RELEASE=$(shell rpm -q --define 'dist %{nil}' --specfile --qf "%{release}" hwdata.spec)
 SOURCEDIR := $(shell pwd)
 
 prefix=$(DESTDIR)/usr