summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--onnxruntime.spec10
-rw-r--r--sources2
3 files changed, 8 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index b34a740..278521d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/v1.15.1.zip
+/main.zip
diff --git a/onnxruntime.spec b/onnxruntime.spec
index b79d3f3..3bceb5c 100644
--- a/onnxruntime.spec
+++ b/onnxruntime.spec
@@ -7,7 +7,7 @@ Release: 1
Summary: Cross-Platform Accelerated Machine Learning
License: MIT
URL: https://onnxruntime.ai/
-Source0: https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.15.1.zip
+Source0: https://github.moeyy.xyz/https://github.com/Liiswen/onnxruntime/archive/refs/heads/main.zip
BuildRoot: %{_buildrootdir}
#编译所需包(按照文档写的)
BuildRequires: cmake gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash
@@ -28,14 +28,16 @@ Summary: Cross-Platform Accelerated Machine Learning For NPU
ONNXRuntime npu
%prep
-unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD
-
+#unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD
+unzip -q -o ../SOURCES/main.zip -d ../BUILD
+#%autosetup -p1
%build
#ping https://github.com
#ping https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.zip
-cd %{name}-%{version}
+#cd %{name}-%{version}
+cd %{name}-main
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
%if %{with_npu}
diff --git a/sources b/sources
index 781115e..b6f7b27 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-faa3c349196ea71eccc73069c04b58a4 v1.15.1.zip
+79c522681ba97d246ce281c3a9ed9d22 main.zip