X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=72fa41ac385698342ab0f28c71418e615e029600;hb=f6e07114e5d6a0c61d005f96733bcd82eea0c3d2;hp=4f1b51a480a54fb44ad5b4e8dcefb00452f3741c;hpb=3549fbaaa75ad8244d64ad631ae893a0afa54421;p=sfa.git diff --git a/Makefile b/Makefile index 4f1b51a4..72fa41ac 100644 --- a/Makefile +++ b/Makefile @@ -15,10 +15,13 @@ uninstall: python-uninstall tests-uninstall .PHONY: all install clean uninstall -VERSIONTAG=0.0-0-should.be-redefined-by-specfile +########## +rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | head -1) +# somehow %{taglevel} is empty, turns out %{release} has what we want +rpmtaglevel:=$(shell rpm -q --specfile sfa.spec --queryformat="%{release}\n" 2> /dev/null | head -1) +VERSIONTAG=$(rpmversion)-$(rpmtaglevel) SCMURL=should-be-redefined-by-specfile -########## python: version version: sfa/util/version.py