ci: change git describe command

This commit is contained in:
2026-02-14 21:54:24 +01:00
parent 69d5b8aeae
commit 3363c3725d
2 changed files with 4 additions and 4 deletions

View File

@@ -1,9 +1,8 @@
NAME = $(shell basename $(PWD))
VERSION = $(shell git describe | sed 's/-/./g')
NAME = netoik-rp
VERSION = $(shell git describe --tags --abbrev=0)
RELEASE = $(shell git rev-parse --short HEAD)
BRANCH = $(shell git branch --show-current)
BUILD_ARCH = noarch
RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm
RPM_RPMDIR = $(shell rpm --eval '%{_rpmdir}')
RPM_SBINDIR = $(shell rpm --eval '%{_sbindir}')
@@ -11,6 +10,7 @@ RPM_SOURCEDIR = $(shell rpm --eval '%{_sourcedir}')
RPM_SYSCONFDIR = $(shell rpm --eval '%{_sysconfdir}')
RPM_UNITDIR = $(shell rpm --eval '%{_unitdir}')
RPM_TARBALL_PATH = $(RPM_SOURCEDIR)/$(NAME)-$(VERSION).tar.gz
RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm
.PHONY: name
name: