From d5ae767ec8f3ebbaba7d756807fc7c07bfe395d8 Mon Sep 17 00:00:00 2001 From: Chen Hao Date: Fri, 13 Dec 2024 18:01:56 +0000 Subject: [PATCH] fix build warnings:patchN is deprecated, use patch N (or %patch -P N ) Signed-off-by: Chen Hao (cherry picked from commit 3d93c235fa1d1df0a06799c4a113972a8d79dbf5) --- apache-commons-jci.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apache-commons-jci.spec b/apache-commons-jci.spec index fb59d42..695c69c 100644 --- a/apache-commons-jci.spec +++ b/apache-commons-jci.spec @@ -4,7 +4,7 @@ %global namedversion %{version}%{?namedreltag} Name: apache-commons-jci Version: 1.1 -Release: 1 +Release: 2 Summary: Commons Java Compiler Interface License: ASL 2.0 URL: http://commons.apache.org/jci/ @@ -68,7 +68,7 @@ Commons JCI compiler implementation for rhino JavaScript. %setup -q -n %{short_name}-%{namedversion}-src find . -name "*.class" -delete find . -name "*.jar" -delete -%patch0 -p1 +%patch 0 -p1 %pom_disable_module examples %pom_xpath_remove "pom:build/pom:extensions" %pom_xpath_set "pom:properties/pom:maven.compiler.source" 1.6 @@ -114,5 +114,8 @@ find . -name "*.jar" -delete %files rhino -f .mfiles-%{short_name}-rhino %changelog +* Fri Dec 13 2024 chenhao - 1.1-2 +- DESC:fix %patchN is deprecated warning + * Fri Jul 24 2020 chengzihan - 1.1-1 - Package init