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:
parent
a9c5a37392
commit
2ff6ce8281
@ -2,7 +2,7 @@
|
|||||||
%global short_name commons-%{base_name}
|
%global short_name commons-%{base_name}
|
||||||
Name: apache-%{short_name}
|
Name: apache-%{short_name}
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: The Apache Commons Extension Language
|
Summary: The Apache Commons Extension Language
|
||||||
License: ASL 1.1
|
License: ASL 1.1
|
||||||
URL: http://commons.apache.org/el
|
URL: http://commons.apache.org/el
|
||||||
@ -26,9 +26,9 @@ Summary: API documentation for %{name}
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{short_name}-%{version}-src
|
%setup -q -n %{short_name}-%{version}-src
|
||||||
%patch0 -p1 -b .license
|
%patch 0 -p1 -b .license
|
||||||
%patch1 -p1
|
%patch 1 -p1
|
||||||
%patch2 -p1
|
%patch 2 -p1
|
||||||
find . -type f -name "*.jar" -exec rm -f {} \;
|
find . -type f -name "*.jar" -exec rm -f {} \;
|
||||||
cat > build.properties <<EOBP
|
cat > build.properties <<EOBP
|
||||||
build.compiler=modern
|
build.compiler=modern
|
||||||
@ -62,5 +62,8 @@ export OPT_JAR_LIST=:
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Jul 25 2020 chengzihan <chengzihan2@huawei.com> - 1.0-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user