From 50c0df359d8679eabbfa5c3d40adff5d539469d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=81=AC?= Date: Fri, 13 Dec 2024 09:50:46 +0000 Subject: [PATCH] fix build warnings: patchN is deprecated, use patch N (or %patch -P N) --- groovy18.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/groovy18.spec b/groovy18.spec index 077d253..2b770a5 100644 --- a/groovy18.spec +++ b/groovy18.spec @@ -2,7 +2,7 @@ %global archiver 1_8_9 Name: groovy18 Version: 1.8.9 -Release: 5 +Release: 6 Summary: Dynamic language for the Java Platform License: ASL 2.0 and BSD and EPL-1.0 and Public Domain and CC-BY-2.5 URL: http://groovy-lang.org @@ -53,11 +53,11 @@ JavaDoc documentation for %{name} find . -name "*.class" -delete find . -name "*.jar" -delete cp %{SOURCE4} %{SOURCE5} %{SOURCE6} . -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 +%patch 0 -p1 +%patch 1 -p1 +%patch 2 -p1 +%patch 3 -p1 +%patch 4 -p1 sed -i "s| depends=\"-excludeLegacyAntVersion\"||" build.xml %pom_xpath_replace "pom:dependency[pom:optional[text()='true']]/pom:scope" "provided" %pom_remove_dep org.livetribe:livetribe-jsr223 @@ -122,6 +122,9 @@ install -p -m644 %{SOURCE2} \ %license LICENSE.txt LICENSE-2.0.txt NOTICE.txt cpl-v10.txt epl-v10.txt %changelog +* Fri Dec 13 2024 litian - 1.8.9-6 +- fix %patchN is deprecated warning + * Tue Jul 30 2024 xu_ping <707078654@qq.com> - 1.8.9-5 - License compliance rectification. -- Gitee