fix build warnings:patchN is deprecated, use patch N (or %patch -P N )

Signed-off-by: Chen Hao <dev11201@linx-info.com>
(cherry picked from commit 1af71030790d2840cf75f33dd89c03c06623045b)
This commit is contained in:
Chen Hao 2024-12-13 17:57:00 +00:00 committed by openeuler-sync-bot
parent a9c5a37392
commit 2ff6ce8281

View File

@ -2,7 +2,7 @@
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 1.0
Release: 1
Release: 2
Summary: The Apache Commons Extension Language
License: ASL 1.1
URL: http://commons.apache.org/el
@ -26,9 +26,9 @@ Summary: API documentation for %{name}
%prep
%setup -q -n %{short_name}-%{version}-src
%patch0 -p1 -b .license
%patch1 -p1
%patch2 -p1
%patch 0 -p1 -b .license
%patch 1 -p1
%patch 2 -p1
find . -type f -name "*.jar" -exec rm -f {} \;
cat > build.properties <<EOBP
build.compiler=modern
@ -62,5 +62,8 @@ export OPT_JAR_LIST=:
%license LICENSE.txt
%changelog
* Fri Dec 13 2024 chenhao <dev11201@linx-info.com> - 1.0-2
- DESC:fix %patchN is deprecated warning
* Sat Jul 25 2020 chengzihan <chengzihan2@huawei.com> - 1.0-1
- Package init