update epoch usage

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2021-11-01 22:50:01 +00:00
committed by Compute-Runtime-Automation
parent a582f34c04
commit cc2ba84fc8
4 changed files with 6 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ export NEO_OCL_VERSION_MINOR
export NEO_OCL_VERSION_BUILD
if [ -z "${BRANCH_SUFFIX}" ]; then
VERSION="1:${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_DEB_MODEL_LINK}"
VERSION="${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}${API_DEB_MODEL_LINK}"
else
VERSION="1:${NEO_OCL_VERSION_MAJOR}.${NEO_OCL_VERSION_MINOR}.${NEO_OCL_VERSION_BUILD}.${API_VERSION}-${API_VERSION_SRC}${API_DEB_MODEL_LINK}"
fi

View File

@@ -60,6 +60,9 @@ if [ "${BUILD_SRPM}" == "1" ]; then
if [ -f "$PATCH_SPEC" ]; then
source "$PATCH_SPEC"
fi
if [ -z "${BRANCH_SUFFIX}" ]; then
sed -i '/^Epoch: /d' ${SPEC}
fi
# Update spec file with new version
perl -pi -e "s/^%global rel .*/%global rel ${RELEASE}/" $SPEC

View File

@@ -5,7 +5,7 @@
%define _source_payload w5T16.xzdio
%define _binary_payload w5T16.xzdio
Name: intel-opencl
Name: intel-opencl
Epoch: 1
Version: %{ver}
Release: %{rel}%{?dist}

View File

@@ -8,7 +8,7 @@
%define igc_sover 1
%if !0%{?build_type:1}
%define build_type Release
%define build_type Release
%endif
%define _source_payload w5T16.xzdio