diff --git a/boostkit-hbase.spec b/boostkit-hbase.spec index ff816feb819164f32340aee3a6e194060f06f810..6ec401828ca639c44d5a8367e82162168b44270a 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,9 +63,13 @@ if [ -n "${HBASE_HOME}" ];then fi %files +/opt/hbase %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