summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-16 06:36:08 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-16 06:36:08 +0000
commit6db2c35a0a829f232cd55c4df5d2991109a34d09 (patch)
treeda79530f0e7506633f983a6f9c23febc62249a4d
parentd0c78ddfa7609ec94d19402eacf2ad5c07df102c (diff)
automatic import of onnxruntime
-rw-r--r--.gitignore1
-rw-r--r--python-onnxruntime.spec2
-rw-r--r--sources1
3 files changed, 4 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index c80ad37..5e84770 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/3rd_party.tar.gz
/onnxruntime-1.16.3.tar.gz
+/deps.tar.gz
diff --git a/python-onnxruntime.spec b/python-onnxruntime.spec
index 582f25a..305365c 100644
--- a/python-onnxruntime.spec
+++ b/python-onnxruntime.spec
@@ -14,6 +14,7 @@ URL: https://github.com/microsoft/onnxruntime
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/onnxruntime-%{version}.tar.gz
Source1: 3rd_party.tar.gz
+Source2: deps.tar.gz
Patch0: 0001-dont-install-tests.patch
Patch1: 0002-use-system-python.patch
@@ -60,6 +61,7 @@ Documentation files for the %{name} package
%autosetup -p1 -n %{pkg_name}-%{pkg_version}
rm -r cmake/external
tar -xzf %{SOURCE1} --directory=.
+tar -xzf %{SOURCE2} --directory=.
python3 tools/ci_build/replace_urls_in_deps.py --new_dir deps
%build
diff --git a/sources b/sources
index 8588a92..01814e4 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
07e6061a2147a00d978db17a012ff19c 3rd_party.tar.gz
+437be87a7792b4e4a7f40706cb5c6347 deps.tar.gz
fe5a67af96cf281275d4c11b24526e65 onnxruntime-1.16.3.tar.gz