From 38f70f5d25df461f42fd3270c2532fd2f99397b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=81=AC?= Date: Mon, 16 Dec 2024 02:29:59 +0000 Subject: [PATCH] fix build warnings: patchN is deprecated, use patch N (or %patch -P N) --- hbase.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hbase.spec b/hbase.spec index 0414527..158e776 100644 --- a/hbase.spec +++ b/hbase.spec @@ -8,7 +8,7 @@ Name: hbase Version: 2.5.0 -Release: 4 +Release: 5 Summary: A database for Apache Hadoop License: Apache-2.0 and BSD and CPL-1.0 and EPL-1.0 and MIT URL: http://hbase.apache.org/ @@ -66,7 +66,7 @@ This package contains the API documentation for %{name}. %prep %setup -qn %{name}-rel-%{version} -%patch0 -p1 +%patch 0 -p1 mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc cp %{SOURCE4} ./.xmvn-reactor echo `pwd` > absolute_prefix.log @@ -75,12 +75,12 @@ absolute_prefix=`head -n 1 absolute_prefix.log` sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor %if "%{_arch}" == "riscv64" -%patch1000 -p1 +%patch 1000 -p1 mkdir -p ${HOME}/%{name}-prep_dir # protoc tar -mxf %{SOURCE5} -C ${HOME}/%{name}-prep_dir pushd ${HOME}/%{name}-prep_dir/protobuf-3.21.1 -%patch1001 -p1 +%patch 1001 -p1 ./autogen.sh ./protoc-artifacts/build-protoc.sh linux riscv64 protoc mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.21.1 -Dclassifier=linux-riscv64 -Dpackaging=exe -Dfile=protoc-artifacts/target/linux/riscv64/protoc.exe @@ -287,6 +287,9 @@ fi %endif %changelog +* Mon Dec 16 2024 litian - 2.5.0-5 +- fix %patchN is deprecated warning + * Tue Jun 25 2024 Dingli Zhang - 2.5.0-4 - Remove riscv64 prebuilded files - Build protoc in prep state for riscv64 -- Gitee