summaryrefslogtreecommitdiff
path: root/onnxruntime.spec
diff options
context:
space:
mode:
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r--onnxruntime.spec10
1 files changed, 6 insertions, 4 deletions
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}