makefile: fix retrieving spec version
Simple sed doesn't expand macros (now used in qubes-release), so replace with proper rpm query.
This commit is contained in:
parent
c6272b9bb4
commit
3dce61a3ed
2
Makefile
2
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; \
|
||||
|
Loading…
Reference in New Issue
Block a user