!7 [sync] PR-2: fix build warnings:patchN is deprecated, use patch N (or %patch -P N )

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-12-17 06:39:51 +00:00 committed by Gitee
commit 8f895b65d4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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