From 016d6044b1b5e2049fbd4f20b6c703fa98ef5773 Mon Sep 17 00:00:00 2001 From: Chen Hao Date: Fri, 13 Dec 2024 18:26:44 +0000 Subject: [PATCH] fix build warnings:patchN is deprecated, use patch N (or %patch -P N ) Signed-off-by: Chen Hao --- apache-commons-jexl.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apache-commons-jexl.spec b/apache-commons-jexl.spec index ce75a57..214290c 100644 --- a/apache-commons-jexl.spec +++ b/apache-commons-jexl.spec @@ -2,7 +2,7 @@ %global compatver 2.1.0 Name: apache-%{jarname} Version: 2.1.1 -Release: 1 +Release: 2 Summary: Java Expression Language (JEXL) License: ASL 2.0 URL: http://commons.apache.org/jexl @@ -38,9 +38,9 @@ This package contains the API documentation for %{name}. %prep %setup -q -n %{jarname}-%{version}-src -%patch0 -p1 -b .test -%patch1 -p1 -b .javadoc -%patch2 -p1 +%patch 0 -p1 -b .test +%patch 1 -p1 -b .javadoc +%patch 2 -p1 %pom_remove_dep org.apache.bsf:bsf-api find \( -name '*.jar' -o -name '*.class' \) -delete find -name '*.txt' -exec sed -i 's/\r//' '{}' + @@ -74,5 +74,8 @@ echo " %doc LICENSE.txt NOTICE.txt %changelog +* Fri Dec 13 2024 chenhao - 2.1.1-2 +- DESC:fix %patchN is deprecated warning + * Mon Jul 27 2020 chengzihan - 2.1.1-1 - Package init -- Gitee