From 4aab65ea0a5404f1410c3a8c857c7aa5cc92fc14 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Mon, 5 Dec 2016 13:56:44 -0500 Subject: [PATCH] Revert the naming back to using snap and instead use the Epoch keyword to control the priority of the xCAT-genesis-base package --- makerpm | 2 -- xCAT-genesis-builder/xCAT-genesis-base.spec | 2 +- xCAT-genesis-scripts/xCAT-genesis-scripts.spec | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/makerpm b/makerpm index 0eb34bdcf..c80ed0edf 100755 --- a/makerpm +++ b/makerpm @@ -165,9 +165,7 @@ function makegenesis { SPEC_FILE="xCAT-genesis-base.spec" RPMNAME="$1" cd `dirname $0`/$DIR - GEN_BASE_REL=0 sed -i s/%%REPLACE_CURRENT_VERSION%%/${VER}/g ${SPEC_FILE} - sed -i s/%%REPLACE_RELEASE%%/${GEN_BASE_REL}/g ${SPEC_FILE} tar --exclude .svn -cjf $RPMROOT/SOURCES/$RPMNAME.tar.bz2 . # undo the changes from the SED command above so it's not tracked by Git git checkout ${SPEC_FILE} diff --git a/xCAT-genesis-builder/xCAT-genesis-base.spec b/xCAT-genesis-builder/xCAT-genesis-base.spec index 1fb25a3e5..989980591 100755 --- a/xCAT-genesis-builder/xCAT-genesis-base.spec +++ b/xCAT-genesis-builder/xCAT-genesis-base.spec @@ -1,5 +1,4 @@ %define version %%REPLACE_CURRENT_VERSION%% -%define release %%REPLACE_RELEASE%% Version: %{?version:%{version}}%{!?version:%(cat Version)} Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")} %ifarch i386 i586 i686 x86 @@ -18,6 +17,7 @@ BuildArch: noarch %define __prelink_undo_cmd %{nil} # To fix the issue error: Arch dependent binaries in noarch package, the following line is needed on Fedora 23 ppc64 %define _binaries_in_noarch_packages_terminate_build 0 +Epoch: 2 AutoReq: false Prefix: /opt/xcat AutoProv: false diff --git a/xCAT-genesis-scripts/xCAT-genesis-scripts.spec b/xCAT-genesis-scripts/xCAT-genesis-scripts.spec index b85ad7b7e..c10abfbf6 100755 --- a/xCAT-genesis-scripts/xCAT-genesis-scripts.spec +++ b/xCAT-genesis-scripts/xCAT-genesis-scripts.spec @@ -31,7 +31,7 @@ Vendor: IBM Corp Summary: xCAT Genesis netboot image - Core content URL: http://xcat.org Source1: xCAT-genesis-scripts.tar.bz2 -Requires: xCAT-genesis-base-%{tarch} >= 2.13.0 +Requires: xCAT-genesis-base-%{tarch} Buildroot: %{_localstatedir}/tmp/xCAT-genesis Packager: IBM Corp.