From cda441595b9ae611b7331551e3fb3ef93efdfddd Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Mon, 12 Dec 2016 14:17:52 -0700 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3c7ece0d..1a811d46b 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Try "make" (for SRPMS) or "make rpm" 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) SHORTCOMMIT := $(shell echo $(COMMIT) | cut -c1-7) RELEASE := $(shell git describe --tags --match 'v*' \