diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-21 05:58:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-21 05:58:25 +0000 |
commit | 38ec7dc1a1c24d0285270c65473fdb8207215e3e (patch) | |
tree | 718924111a9750552c54782fd32c0b965f41313e /onnxruntime.spec | |
parent | 4cc5f1166b9b200dd0c16e409543f25fb9d0f8b3 (diff) |
automatic import of onnxruntime
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r-- | onnxruntime.spec | 79 |
1 files changed, 35 insertions, 44 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec index 26bae07..fc4c9be 100644 --- a/onnxruntime.spec +++ b/onnxruntime.spec @@ -7,22 +7,24 @@ Release: 1 Summary: Cross-Platform Accelerated Machine Learning License: MIT URL: https://onnxruntime.ai/ -Source0: https://github.com/Liiswen/onnxruntime/archive/refs/heads/main.zip -Source1: abseil-cpp-20230802.0.zip -Source2: date-3.0.1.zip -Source3: nsync-1.26.0.zip -Source4: protobuf-21.12.zip -Source5: json-3.10.5.zip -Source6: mp11-boost-1.82.0.zip -Source7: re2-2022-06-01.zip -Source8: SafeInt-3.0.28.zip -Source9: GSL-4.0.0.zip -Source10: flatbuffers-1.12.0.zip -Source11: googletest-1.14.0.zip +Source0: https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.15.1.zip +Source1: abseil-cpp-20220623.1.zip +Source2: date-2.4.1.zip +Source3: flatbuffers-1.12.0.zip +Source4: nsync-1.23.0.zip +Source5: googletest-519beb0e52c842729b4b53731d27c0e0c32ab4a2.zip +Source6: json-3.10.5.zip +Source7: GSL-4.0.0.zip +Source8: mp11-boost-1.79.0.zip +Source9: pybind11-2.10.1.zip +Source10: onnx-1.14.0.zip +Source11: protobuf-21.12.zip Source12: cpuinfo-5916273f79a21551890fd3d56fc5375a78d1598d.zip -Source13: eigen-3.4.zip -Source14: onnx-e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip -Source15: pybind11-2.10.1.zip +Source13: re2-2022-06-01.zip +Source14: SafeInt-ff15c6ada150a5018c5ef2172401cb4529eac9c0.zip +Source15: onnxruntime.tar.gz.aa +Source16: onnxruntime.tar.gz.ab + BuildRoot: %{_buildrootdir} #编译所需包(按照文档写的) BuildRequires: cmake gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash @@ -43,37 +45,26 @@ Summary: Cross-Platform Accelerated Machine Learning For NPU ONNXRuntime npu %prep -#unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD -cmake --version -du -sh ../SOURCES/* -mv ../SOURCES/abseil-cpp-20230802.0.zip ../BUILD -mv %{SOURCE2} ../BUILD -mv %{SOURCE3} ../BUILD -mv %{SOURCE4} ../BUILD -mv %{SOURCE5} ../BUILD -mv %{SOURCE6} ../BUILD -mv %{SOURCE7} ../BUILD -mv %{SOURCE8} ../BUILD -mv %{SOURCE9} ../BUILD -mv %{SOURCE10} ../BUILD -mv %{SOURCE11} ../BUILD -mv %{SOURCE12} ../BUILD -mv %{SOURCE13} ../BUILD -mv %{SOURCE14} ../BUILD -mv %{SOURCE15} ../BUILD -unzip -q -o ../SOURCES/main.zip -d ../BUILD - - - -#ping gitee.com -#git clone https://gitee.com/LeaSwen/onnxruntime1.15.1_dep.git - -%build - -#cd %{name}-%{version} -cd %{name}-main +cat %{SOURCE15} %{SOURCE16} > %{SOURCE0} +%setup -q + +cp -r %{SOURCE1} %{_builddir} +cp -r %{SOURCE2} %{_builddir} +cp -r %{SOURCE3} %{_builddir} +cp -r %{SOURCE4} %{_builddir} +cp -r %{SOURCE5} %{_builddir} +cp -r %{SOURCE6} %{_builddir} +cp -r %{SOURCE7} %{_builddir} +cp -r %{SOURCE8} %{_builddir} +cp -r %{SOURCE9} %{_builddir} +cp -r %{SOURCE10} %{_builddir} +cp -r %{SOURCE11} %{_builddir} +cp -r %{SOURCE12} %{_builddir} +cp -r %{SOURCE13} %{_builddir} +cp -r %{SOURCE14} %{_builddir} +%build git init . && bash build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --build_wheel --build_dir build/CPU #bash build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --build_wheel --build_dir build/CPU |