feat: adapt on nginx versionning
All checks were successful
Continuous Integration / lint_n_build (push) Successful in 24s
All checks were successful
Continuous Integration / lint_n_build (push) Successful in 24s
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,12 +1,13 @@
|
||||
NAME = netoik-rp
|
||||
VERSION = $(shell git describe --abbrev=0)
|
||||
RELEASE = $(shell git rev-parse --short HEAD)
|
||||
EPOCH = $(shell git describe --abbrev=0 | cut --delimiter=/ --fields=1)
|
||||
VERSION = $(shell git describe --abbrev=0 | cut --delimiter=/ --fields=2 | cut --delimiter=- --fields=1)
|
||||
RELEASE = $(shell git describe --abbrev=0 | cut --delimiter=/ --fields=2 | cut --delimiter=- --fields=2)
|
||||
ARCH = noarch
|
||||
OWNER = netoik
|
||||
SUMMARY = "Netoïk Reverse Proxy"
|
||||
LICENSE = "MIT"
|
||||
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
||||
SOURCE0 = "$(NAME)-$(VERSION)-$(RELEASE).tar.gz"
|
||||
SOURCE0 = "$(NAME)-$(EPOCH)-$(VERSION)-$(RELEASE).tar.gz"
|
||||
|
||||
RPM_RPMDIR = $(shell rpm --eval '%{_rpmdir}')
|
||||
RPM_SBINDIR = $(shell rpm --eval '%{_sbindir}')
|
||||
@@ -25,6 +26,10 @@ help:
|
||||
name: ## Show project name
|
||||
@echo "$(NAME)"
|
||||
|
||||
.PHONY: epoch
|
||||
epoch: ## Show project epoch
|
||||
@echo "$(EPOCH)"
|
||||
|
||||
.PHONY: version
|
||||
version: ## Show current project version
|
||||
@echo "$(VERSION)"
|
||||
@@ -57,7 +62,7 @@ url: ## Show project homepage URL
|
||||
source0: ## Show rpm source0 file name
|
||||
@echo "$(SOURCE0)"
|
||||
|
||||
$(RPM_TARBALL_PATH): *
|
||||
$(RPM_TARBALL_PATH):
|
||||
git archive --format=tar.gz \
|
||||
--output="$@" \
|
||||
--prefix="$(NAME)-$(VERSION)/" \
|
||||
|
||||
Reference in New Issue
Block a user