!72 fix: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N)

From: @xugmin 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2024-11-12 13:29:33 +00:00 committed by Gitee
commit 7a919cd291
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,7 +4,7 @@
Name: rubygem-%{gem_name}
Epoch: 1
Version: 7.0.7
Release: 4
Release: 5
Summary: Web-flow and rendering framework putting the VC in MVC (part of Rails)
License: MIT
URL: http://rubyonrails.org
@ -68,16 +68,16 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2
%patch1 -p2
%patch3 -p2
%patch 1 -p2
%patch 3 -p2
%patch3000 -p2
%patch3001 -p2
%patch 3000 -p2
%patch 3001 -p2
pushd %{_builddir}
%patch0 -p2
%patch2 -p2
%patch4 -p2
%patch 0 -p2
%patch 2 -p2
%patch 4 -p2
popd
%build
@ -120,6 +120,9 @@ popd
%doc %{gem_instdir}/README.rdoc
%changelog
* Mon Nov 04 2024 xuguangmin <xuguangmin@kylinos.cn> - 1:7.0.7-5
- fix: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N)
* Fri Oct 18 2024 yaoxin <yao_xin001@hoperun.com> - 1:7.0.7-4
- Fix CVE-2024-41128 and CVE-2024-47887