diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-13 12:50:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-13 12:50:01 +0000 |
commit | d0c3bd2eccb1c5b6d74784e188733ab1f32a3be1 (patch) | |
tree | 8e7a5965815d28a9034f39d3788e32070316dd72 /onnxruntime.spec | |
parent | c050380f01697fb897dcd092e0c2675e10823f5e (diff) |
automatic import of onnxruntime
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r-- | onnxruntime.spec | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec index 6be1bcd..f415bc4 100644 --- a/onnxruntime.spec +++ b/onnxruntime.spec @@ -7,7 +7,8 @@ Release: 1 Summary: Cross-Platform Accelerated Machine Learning License: MIT URL: https://onnxruntime.ai/ -Source0: onnxruntime-1.15.1.zip +Source0: https://github.com/Liiswen/onnxruntime/archive/refs/heads/main.zip +Source1: abseil-cpp-20220623.1.zip BuildRoot: %{_buildrootdir} #编译所需包(按照文档写的) BuildRequires: cmake gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash @@ -31,8 +32,10 @@ ONNXRuntime npu #unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD du -sh ../SOURCES/* -#unzip -q -o ../SOURCES/onnxruntime-1.15.1.zip -d ../BUILD -%setup -q +mv ../SOURCES/abseil-cpp-20220623.1.zip ../BUILD +unzip -q -o ../SOURCES/main.zip -d ../BUILD + + #ping gitee.com #git clone https://gitee.com/LeaSwen/onnxruntime1.15.1_dep.git |