summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--onnxruntime-1.15.1.zip3
-rw-r--r--onnxruntime.spec9
-rw-r--r--sources3
4 files changed, 9 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 278521d..f7ff2ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/v1.15.1.zip
/main.zip
+/abseil-cpp-20220623.1.zip
diff --git a/onnxruntime-1.15.1.zip b/onnxruntime-1.15.1.zip
deleted file mode 100644
index 2666c26..0000000
--- a/onnxruntime-1.15.1.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c2ba80621a2ffe94b05dbd6d60f47663b13e2cd4a0121a5a0348ab3e3e5546fa
-size 393051755
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
diff --git a/sources b/sources
index 08f9285..83291db 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-600f74d3500b031a6884b762c7aeb997 main.zip
+72a05e8ae9b3122515e8ff9d30d59c15 abseil-cpp-20220623.1.zip
+47df0483bdb8a49ed0ee25607309a3b0 main.zip