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

(cherry picked from commit 9f29c1364fa5d0823b9027eba2727db9dbb92d9e)
This commit is contained in:
李恬 2024-12-16 01:55:13 +00:00 committed by openeuler-sync-bot
parent bfd4552812
commit c3b160231f

View File

@ -1,6 +1,6 @@
Name: h2
Version: 1.4.196
Release: 4
Release: 5
Summary: Java SQL database
License: (EPL-1.0 or MPLv2.0 or LGPLv3+) and ASL 2.0
URL: http://www.h2database.com
@ -22,7 +22,7 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}
%patch0 -p2
%patch 0 -p2
rm src/main/org/h2/util/OsgiDataSourceFactory.java
sed -i -e '/OsgiDataSourceFactory/d' src/main/org/h2/util/DbDriverActivator.java
sed -i -e '/org.osgi.service.jdbc/d' src/main/META-INF/MANIFEST.MF
@ -64,6 +64,9 @@ sh build.sh jar docs
%license src/docsrc/html/license.html
%changelog
* Mon Dec 16 2024 litian <dev11105@linx-info.com> - 1.4.196-5
- fix %patchN is deprecated warning
* Fri Sep 23 2022 caodongxia <caodongxia@h-partners.com> - 1.4.196-4
- Add glassfish-servlet-api version limit