Skip to content

Commit 666868e

Browse files
committed
fix rpm version dashes to underscore
1 parent 665951a commit 666868e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ TARGET_DIR = $(PKG_DIR)/target
66
CONFIG_DIR = /etc/aerospike
77
# Package variables
88
VERSION = $(shell git describe --tags --always)
9+
RPM_VERSION = $(shell git describe --tags --always | tr '-' '_')
910
BUILD_DISTRO ?= $(shell .github/packaging/common/os_version.sh)
1011
NAME = "aerospike-$(PACKAGE_NAME)"
1112
MAINTAINER = "Aerospike"
@@ -43,13 +44,13 @@ rpm: prep
4344
--output-type rpm \
4445
--chdir $(BUILD_DIR)/ \
4546
--name $(NAME) \
46-
--version $(VERSION) \
47+
--version $(RPM_VERSION) \
4748
--maintainer $(MAINTAINER) \
4849
--description $(DESCRIPTION) \
4950
--license $(LICENSE) \
5051
--url $(URL) \
5152
--vendor $(VENDOR) \
52-
--package $(TARGET_DIR)/$(NAME)-$(VERSION).$(BUILD_DISTRO).$(ARCH).rpm
53+
--package $(TARGET_DIR)/$(NAME)-$(RPM_VERSION).$(BUILD_DISTRO).$(ARCH).rpm
5354

5455
.PHONY: tar
5556
tar: prep

0 commit comments

Comments
 (0)