From d0c3bd2eccb1c5b6d74784e188733ab1f32a3be1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 13 Sep 2023 12:50:01 +0000 Subject: automatic import of onnxruntime --- onnxruntime.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'onnxruntime.spec') 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 -- cgit v1.2.3