diff --git a/groovy18.spec b/groovy18.spec
index 077d2538d625fbef16a313e942e0e753fd735a8d..2b770a5f6a9b92af97ee9b798b5cc72c194ae623 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.