Makefile: strip "v" from RPM versions

Prior to this change, all RPMs would have a Version field that started
with "v", for example "ceph-ansible-v2.0.0-163.g2c98b1d.el7"

Strip the "v" out in these cases, so that the version is simply a
number.
pull/1177/head
Ken Dreyer 2016-12-12 14:17:52 -07:00
parent 2c98b1d70f
commit cda441595b
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Try "make" (for SRPMS) or "make rpm" # Try "make" (for SRPMS) or "make rpm"
NAME = ceph-ansible NAME = ceph-ansible
VERSION := $(shell git describe --tags --abbrev=0) VERSION := $(shell git describe --tags --abbrev=0 | sed 's/^v//')
COMMIT := $(shell git rev-parse HEAD) COMMIT := $(shell git rev-parse HEAD)
SHORTCOMMIT := $(shell echo $(COMMIT) | cut -c1-7) SHORTCOMMIT := $(shell echo $(COMMIT) | cut -c1-7)
RELEASE := $(shell git describe --tags --match 'v*' \ RELEASE := $(shell git describe --tags --match 'v*' \