X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=72fa41ac385698342ab0f28c71418e615e029600;hb=2701a37b1f270df160b9a03b29b0148013406390;hp=3706a3bcf88fdecafa4c95fdd0aecdcb623e5bba;hpb=bb6532c1ca28e887152b0640aa448b77d2541287;p=sfa.git diff --git a/Makefile b/Makefile index 3706a3bc..72fa41ac 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,8 @@ uninstall: python-uninstall tests-uninstall ########## rpmversion:=$(shell rpm -q --specfile sfa.spec --queryformat="%{version}\n" | head -1) -# somehow this is empty -rpmtaglevel:=$(shell rpm -q --specfile sfa.spec --queryformat="%{taglevel}\n" 2> /dev/null | head -1) -rpmtaglevel:=$(if $(rpmtaglevel),$(rpmtaglevel),0) +# 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