Application versioning based on build release

This change will automatically adjust versioning of the application
tarball and python plugins to reflect the same version reported by
SW_VERION in /etc/build.info.

Test plan:
PASS: build-pkgs -a & build-image
PASS: AIO-SX install
      Apply application

Story: 2010929
Task: 49340

Change-Id: Ic779fd12324eb73b5b57307f5f093b1e5ad13550
Signed-off-by: Igor Soares <Igor.PiresSoares@windriver.com>
This commit is contained in:
Igor Soares 2023-12-28 19:03:20 -03:00
parent 923d547031
commit a8526d225e
4 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,8 @@ Build-Depends: debhelper-compat (= 13),
python3-all,
python3-pbr,
python3-setuptools,
python3-wheel
python3-wheel,
build-info
Standards-Version: 4.5.1
Homepage: https://www.starlingx.io

View File

@ -5,7 +5,7 @@ export APP_NAME = auditd
export PYBUILD_NAME = k8sapp-auditd
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
export MAJOR = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
export MAJOR = $(shell cat /etc/build.info | grep SW_VERSION | cut -d'"' -f2)
export MINOR_PATCH = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
export PBR_VERSION = $(MAJOR).$(MINOR_PATCH)

View File

@ -5,7 +5,8 @@ Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13),
helm,
python3-k8sapp-auditd,
python3-k8sapp-auditd-wheels
python3-k8sapp-auditd-wheels,
build-info
Standards-Version: 4.5.1
Homepage: https://www.starlingx.io

View File

@ -6,7 +6,7 @@ export APP_FOLDER = $(ROOT)/usr/local/share/applications/helm
export LOGROTATE_FOLDER = $(ROOT)/etc/logrotate.d
export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
export RELEASE = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-')
export RELEASE = $(shell cat /etc/build.info | grep SW_VERSION | cut -d'"' -f2)
export REVISION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.')
export APP_NAME = auditd