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

This commit is contained in:
xuguangmin 2024-11-04 09:42:32 +08:00
parent 11c1f79ad0
commit df110bcce4

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