File project.diff of Package python-onnxruntime

--- python-onnxruntime.spec.orig
+++ python-onnxruntime.spec
@@ -52,6 +52,8 @@ Patch3:         gcc10.patch
 # see https://github.com/microsoft/onnxruntime/issues/4508
 Patch4:         make-onnx_proto-shared-lib.patch
 Patch5:         Add-compatibility-with-Protobuf-3.12-4291.patch
+Patch6:         Add-compatibility-with-Protobuf-3.20.patch
+Patch7:         Fix-compile-error-with-protobuf-RepeatedIterator-137.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy-devel >= 1.15.0}
 BuildRequires:  %{python_module numpy}
@@ -91,7 +93,6 @@ Exchange (ONNX) models.  For more inform
 
 %prep
 %setup -q -n onnxruntime-%{version}
-%autopatch -p1
 # put additional sources in place
 %define make_depend_src() test -e $(basename %{1}| sed 's/-.*//') && rmdir %{?2}%{!?2:$(basename %{1}| sed 's/-.*//')}; test -e %{2} && rmdir %{2}; tar xzf %{1}; mv $(basename %{1} | sed 's/\.tar\.gz//' ) %{?2}%{!?2:$(basename %{1}| sed 's/-.*//')}
 pushd cmake/external
@@ -108,6 +109,7 @@ popd
 # find re2
 cp %{SOURCE1}  Findre2.cmake
 popd
+%autopatch -p1
 
 %build
 # The build is done with cmake, but some of its standard flags make the build
openSUSE Build Service is sponsored by