summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore8
-rw-r--r--onnxruntime.spec79
-rw-r--r--sources19
3 files changed, 53 insertions, 53 deletions
diff --git a/.gitignore b/.gitignore
index 118cea2..246108b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,11 @@
/onnx-e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip
/pybind11-2.10.1.zip
/cpuinfo-5916273f79a21551890fd3d56fc5375a78d1598d.zip
+/SafeInt-ff15c6ada150a5018c5ef2172401cb4529eac9c0.zip
+/date-2.4.1.zip
+/googletest-519beb0e52c842729b4b53731d27c0e0c32ab4a2.zip
+/mp11-boost-1.79.0.zip
+/nsync-1.23.0.zip
+/onnx-1.14.0.zip
+/onnxruntime.tar.gz.aa
+/onnxruntime.tar.gz.ab
diff --git a/onnxruntime.spec b/onnxruntime.spec
index 26bae07..fc4c9be 100644
--- a/onnxruntime.spec
+++ b/onnxruntime.spec
@@ -7,22 +7,24 @@ Release: 1
Summary: Cross-Platform Accelerated Machine Learning
License: MIT
URL: https://onnxruntime.ai/
-Source0: https://github.com/Liiswen/onnxruntime/archive/refs/heads/main.zip
-Source1: abseil-cpp-20230802.0.zip
-Source2: date-3.0.1.zip
-Source3: nsync-1.26.0.zip
-Source4: protobuf-21.12.zip
-Source5: json-3.10.5.zip
-Source6: mp11-boost-1.82.0.zip
-Source7: re2-2022-06-01.zip
-Source8: SafeInt-3.0.28.zip
-Source9: GSL-4.0.0.zip
-Source10: flatbuffers-1.12.0.zip
-Source11: googletest-1.14.0.zip
+Source0: https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.15.1.zip
+Source1: abseil-cpp-20220623.1.zip
+Source2: date-2.4.1.zip
+Source3: flatbuffers-1.12.0.zip
+Source4: nsync-1.23.0.zip
+Source5: googletest-519beb0e52c842729b4b53731d27c0e0c32ab4a2.zip
+Source6: json-3.10.5.zip
+Source7: GSL-4.0.0.zip
+Source8: mp11-boost-1.79.0.zip
+Source9: pybind11-2.10.1.zip
+Source10: onnx-1.14.0.zip
+Source11: protobuf-21.12.zip
Source12: cpuinfo-5916273f79a21551890fd3d56fc5375a78d1598d.zip
-Source13: eigen-3.4.zip
-Source14: onnx-e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip
-Source15: pybind11-2.10.1.zip
+Source13: re2-2022-06-01.zip
+Source14: SafeInt-ff15c6ada150a5018c5ef2172401cb4529eac9c0.zip
+Source15: onnxruntime.tar.gz.aa
+Source16: onnxruntime.tar.gz.ab
+
BuildRoot: %{_buildrootdir}
#编译所需包(按照文档写的)
BuildRequires: cmake gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash
@@ -43,37 +45,26 @@ Summary: Cross-Platform Accelerated Machine Learning For NPU
ONNXRuntime npu
%prep
-#unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD
-cmake --version
-du -sh ../SOURCES/*
-mv ../SOURCES/abseil-cpp-20230802.0.zip ../BUILD
-mv %{SOURCE2} ../BUILD
-mv %{SOURCE3} ../BUILD
-mv %{SOURCE4} ../BUILD
-mv %{SOURCE5} ../BUILD
-mv %{SOURCE6} ../BUILD
-mv %{SOURCE7} ../BUILD
-mv %{SOURCE8} ../BUILD
-mv %{SOURCE9} ../BUILD
-mv %{SOURCE10} ../BUILD
-mv %{SOURCE11} ../BUILD
-mv %{SOURCE12} ../BUILD
-mv %{SOURCE13} ../BUILD
-mv %{SOURCE14} ../BUILD
-mv %{SOURCE15} ../BUILD
-unzip -q -o ../SOURCES/main.zip -d ../BUILD
-
-
-
-#ping gitee.com
-#git clone https://gitee.com/LeaSwen/onnxruntime1.15.1_dep.git
-
-%build
-
-#cd %{name}-%{version}
-cd %{name}-main
+cat %{SOURCE15} %{SOURCE16} > %{SOURCE0}
+%setup -q
+
+cp -r %{SOURCE1} %{_builddir}
+cp -r %{SOURCE2} %{_builddir}
+cp -r %{SOURCE3} %{_builddir}
+cp -r %{SOURCE4} %{_builddir}
+cp -r %{SOURCE5} %{_builddir}
+cp -r %{SOURCE6} %{_builddir}
+cp -r %{SOURCE7} %{_builddir}
+cp -r %{SOURCE8} %{_builddir}
+cp -r %{SOURCE9} %{_builddir}
+cp -r %{SOURCE10} %{_builddir}
+cp -r %{SOURCE11} %{_builddir}
+cp -r %{SOURCE12} %{_builddir}
+cp -r %{SOURCE13} %{_builddir}
+cp -r %{SOURCE14} %{_builddir}
+%build
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
#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
diff --git a/sources b/sources
index 193e4bd..f3fb5de 100644
--- a/sources
+++ b/sources
@@ -1,16 +1,17 @@
616723bc9ce630d3f245976d00339ecf GSL-4.0.0.zip
-ed0ca3988edc1bfe7942b24afac839c6 SafeInt-3.0.28.zip
-3d4793b3d644fd184a2b9f57da1c4839 abseil-cpp-20230802.0.zip
+fd9fb59dd2212cf4c8b0f2c2f6abb1ce SafeInt-ff15c6ada150a5018c5ef2172401cb4529eac9c0.zip
+72a05e8ae9b3122515e8ff9d30d59c15 abseil-cpp-20220623.1.zip
2f19e75129b5440fa70a3489dbac3250 cpuinfo-5916273f79a21551890fd3d56fc5375a78d1598d.zip
-cf556cc376d15055b8235b05b2fc6253 date-3.0.1.zip
-6c39801bf7035641511231e307d71415 eigen-3.4.zip
+6bb7a7180339566bd36eaeb1785125de date-2.4.1.zip
a1afdbf114dec01a861c1b8c917d0fc7 flatbuffers-1.12.0.zip
-b4911e882c51cba34bebfb5df500a650 googletest-1.14.0.zip
+db9d6012613268fee0f90e4f400fa879 googletest-519beb0e52c842729b4b53731d27c0e0c32ab4a2.zip
accaeb6a75f5972f479ef9139fa65b9e json-3.10.5.zip
-65dcc81f82d14435d738aa85f7da6000 main.zip
-bac656df95a7e76388ec67eff040fe03 mp11-boost-1.82.0.zip
-0d04a7781642dc1d2e6ae318cf73c7ae nsync-1.26.0.zip
-8d1c9477ca8a5f8d8a31499a946013bf onnx-e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip
+d93250e0b4967b5471c6d881c97a895c mp11-boost-1.79.0.zip
+04cfdc5d1c639d4c0988b9e25b82af06 nsync-1.23.0.zip
+814230a0b432fd51871f210a38645411 onnx-1.14.0.zip
+0f68615e9e1103e207d5e8130f0a5807 onnxruntime.tar.gz.aa
+5d6fce8623a7ed28c75a9df3b552acdc onnxruntime.tar.gz.ab
d084cfc9d6f86abbda9aae9e0ae0526a protobuf-21.12.zip
fc55cd0fcb76742a3f040cb8f5d5366f pybind11-2.10.1.zip
478836ff8188ab9e46a62f5081426d26 re2-2022-06-01.zip
+faa3c349196ea71eccc73069c04b58a4 v1.15.1.zip