fix: auto-detect release version from git tag
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2022-01-28 13:36:47 +01:00
parent 4556772ee8
commit dae9026410
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 3 additions and 2 deletions

View File

@ -1,2 +1,3 @@
# renovate: datasource=github-releases depName=OpenPrinting/cups versioning=loose
export CUPS_VERSION="${CUPS_VERSION:-v2.4.1}"
export CUPS_RELEASE="${DRONE_TAG##*-}"

View File

@ -12,7 +12,7 @@ prepare:
.PHONY: build
build:
source $(WORKDIR)/.drone.env && \
rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
rpmbuild -ba --without libusb1 --define "release_ $${CUPS_RELEASE:-0}" --define "version_ $${CUPS_VERSION##v}" cups.spec
.PHONY: clean
clean:

View File

@ -44,7 +44,7 @@
Summary: CUPS
Name: cups
Version: %{version_}
Release: 2%{?dist}
Release: %{release_}%{?dist}
Epoch: 1
License: GPL
Group: System Environment/Daemons