Makefile: generate tagged RPMs with "-1" release value

Prior to this change, if we built an RPM from a tagged commit, the RPM
would have a release value of "0".

This causes some problems with RPM version comparisons when comparing
version numbers with "rc" tags/packages, which should also have a
less-than-one Release value.
pull/1350/head
Ken Dreyer 2017-03-07 11:11:53 -07:00
parent b55a0702c2
commit db241751db
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ RELEASE := $(shell git describe --tags --match 'v*' \
| sed 's/^[^-]*-//' \
| sed 's/-/./')
ifeq ($(VERSION),$(RELEASE))
RELEASE = 0
RELEASE = 1
endif
NVR := $(NAME)-$(VERSION)-$(RELEASE).el7