Extract only first version from specfile
When tagging a new version, rpm will give us the version twice, one for main package and one for the -utils subpackage. We should only use the first one (they should be the same anyway). Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
345308464f
commit
d3a2ceb8ce
4
Makefile
4
Makefile
@ -1,8 +1,8 @@
|
||||
.PHONY: all clean doc log test
|
||||
|
||||
PKGNAME=pungi
|
||||
VERSION=$(shell rpm -q --qf "%{VERSION}\n" --specfile ${PKGNAME}.spec)
|
||||
RELEASE=$(shell rpm -q --qf "%{RELEASE}\n" --specfile ${PKGNAME}.spec)
|
||||
VERSION=$(shell rpm -q --qf "%{VERSION}\n" --specfile ${PKGNAME}.spec | head -n1)
|
||||
RELEASE=$(shell rpm -q --qf "%{RELEASE}\n" --specfile ${PKGNAME}.spec | head -n1)
|
||||
GITTAG=${PKGNAME}-$(VERSION)
|
||||
PKGRPMFLAGS=--define "_topdir ${PWD}" --define "_specdir ${PWD}" --define "_sourcedir ${PWD}/dist" --define "_srcrpmdir ${PWD}" --define "_rpmdir ${PWD}" --define "_builddir ${PWD}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user