From 3dce61a3edc70affe458f90be59768ec3bc2fc90 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 16 Nov 2012 04:49:01 +0100 Subject: [PATCH] makefile: fix retrieving spec version Simple sed doesn't expand macros (now used in qubes-release), so replace with proper rpm query. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b926f5a..8d08f10 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ TOP := $(shell pwd) RPMBUILD_DEFINES := --define "_rpmdir rpm/" --define "_sourcedir $(TOP)/rpm/SOURCES" -spec_version = $(shell sed -n '/^Version:/s/.*:[ \t]\+//p' $(1)) +spec_version = $(shell rpm -q --qf "%{VERSION}\n" --specfile $(1)| head -1) package = $(shell \ mkdir -p rpm/SOURCES; \ cd rpm/SOURCES; \