From 8c916b7fd4f6d87915cc6eaeca6bd672c229f325 Mon Sep 17 00:00:00 2001 From: yang-hai-tao <445849784@qq.com> Date: Mon, 29 May 2023 16:54:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9spec=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boostkit-hbase.spec | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/boostkit-hbase.spec b/boostkit-hbase.spec index ff816fe..91c049e 100644 --- a/boostkit-hbase.spec +++ b/boostkit-hbase.spec @@ -15,20 +15,24 @@ ExclusiveArch: aarch64 Kunpeng BoostKit toolkit for Hbase %prep -tar -zxvf %{SOURCE0} -C %{_builddir}/ + %build %install - +rm -rf %{buildroot}/opt/hbase +mkdir -p %{buildroot}/opt/hbase +cp -rf %{SOURCE0} %{buildroot}/opt/hbase %post if [ -n "${HBASE_HOME}" ];then + cd /opt/hbase + tar -zxvf boostkit-hbase-tries-index.tar.gz mv ${HBASE_HOME}/lib ${HBASE_HOME}/lib-old - cp -rf %{_builddir}/lib ${HBASE_HOME}/ - cp -rf %{_builddir}/BoostKit-tries-index_%{version_hbase}.zip ${HBASE_HOME}/lib - cp -rf %{_builddir}/hbase-site-install.txt ${HBASE_HOME}/conf - cp -rf %{_builddir}/install-site.sh ${HBASE_HOME}/conf + cp -rf /opt/hbase/lib ${HBASE_HOME}/ + cp -rf /opt/hbase/BoostKit-tries-index_%{version_hbase}.zip ${HBASE_HOME}/lib + cp -rf /opt/hbase/hbase-site-install.txt ${HBASE_HOME}/conf + cp -rf /opt/hbase/install-site.sh ${HBASE_HOME}/conf cd ${HBASE_HOME}/lib unzip BoostKit-tries-index_%{version_hbase}.zip cd ${HBASE_HOME}/conf @@ -40,7 +44,7 @@ if [ -n "${HBASE_HOME}" ];then else echo "======Hbase is not installed in the environment======" echo "======Go to yum remove boostkit-hbase.aarch64======" - echo "======Install hbase-2.2.3-first======" + echo "======Install hbase-2.2.3 first======" echo "======Write the HBASE_HOME environment variable to /etc/profile======" exit 1 fi @@ -59,6 +63,7 @@ if [ -n "${HBASE_HOME}" ];then fi %files +/opt/hbase -- Gitee From bc5e28b724e075cc41b3b29bc3f27bf83509f2f5 Mon Sep 17 00:00:00 2001 From: yang-hai-tao <445849784@qq.com> Date: Mon, 29 May 2023 17:10:01 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boostkit-hbase.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boostkit-hbase.spec b/boostkit-hbase.spec index 91c049e..6ec4018 100644 --- a/boostkit-hbase.spec +++ b/boostkit-hbase.spec @@ -68,5 +68,8 @@ fi %changelog +* Mon May 29 2023 yanghaitao - 1.0.0-1 +- update spec file + * Fri May 26 2023 yanghaitao - 1.0.0-1 - init Kunpeng BoostKit tries-index package for Hbase \ No newline at end of file -- Gitee