diff options
author | CoprDistGit <infra@openeuler.org> | 2024-02-03 11:20:51 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-02-03 11:20:51 +0000 |
commit | 50519502fe5caf5d2be371602068ab618a74181c (patch) | |
tree | d33900405dbaae389158b2b22640aacdfe938aa0 | |
parent | 67450a21ec7698b9969b62a7653161a813ea6659 (diff) |
automatic import of onnxruntime
-rw-r--r-- | onnxruntime.spec | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec index 811c10a..fefe053 100644 --- a/onnxruntime.spec +++ b/onnxruntime.spec @@ -1,5 +1,4 @@ %global _empty_manifest_terminate_build 0 -%global __brp_check_rpaths %{nil} %global __cmake_build_dir "./cmake-build" Name: onnxruntime @@ -20,6 +19,7 @@ Patch6: 0001-fix-forward-decl-flatbuffers.patch Patch7: 0001-add-onnxruntime_INSTALL_UNIT_TESTS-option.patch Patch8: 0001-gcc-false-positive.patch Patch9: 0001-versioned-onnxruntime-providers_shared.patch +# Patch10: 0001-use-system-gtest.patch BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -74,6 +74,7 @@ Summary: Documentation files for the %{name} package Documentation files for the %{name} package %prep +cat %{_sourcedir}/onnxruntime-1.16.3.tar.gz* > %{_builddir}/onnxruntime-1.16.3.tar.gz %autosetup -p1 -n %{name}-%{version} %build @@ -106,7 +107,7 @@ rm -v onnxruntime/test/optimizer/nhwc_transformer_test.cc -B "%{__cmake_build_dir}" \ -S cmake \ -%{__cmake} --build "%{__cmake_build_dir}" -j8 --verbose +%{__cmake} --build "%{__cmake_build_dir}" %{?_smp_mflags} --verbose # Build python libs mv ./onnxruntime ./onnxruntime.src |