diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-31 15:24:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-31 15:24:55 +0000 |
commit | c69e370f437abb7c0ecced5f4d093525c65b108f (patch) | |
tree | f664af1f6cc4ba148fbdf799af4cec085072c880 /onnxruntime.spec | |
parent | 85005bac3d3391f46b38a247193e6c816e43b8dc (diff) |
automatic import of onnxruntime
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r-- | onnxruntime.spec | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec new file mode 100644 index 0000000..b36846d --- /dev/null +++ b/onnxruntime.spec @@ -0,0 +1,50 @@ +%global debug_package %{nil} + +Name: onnxruntime +Version: 1.17.1 +Release: 1%{?dist} +Summary: ONNXRuntime with source build for CPU + +License: MIT +URL: https://onnxruntime.ai +Source0: https://github.com/microsoft/%{name}/archive/refs/tags/v%{version}.tar.gz + +%description +ONNX Runtime is an open-source high-performance inference engine for running computational graphs on various platforms. ONNX stands for "Open Neural Network Exchange," which is an open standard for representing neural network models, making it easier to share and interchange models between different deep learning frameworks. ONNX Runtime supports running models on CPUs, GPUs, and other devices, providing cross-platform and cross-framework performance optimizations. + +%package -n python3-onnxruntime +Summary: Summary: ONNX Runtime offers a range of APIs that simplify the process of loading, inferring, and optimizing models +Provides: python-onnxruntime + +BuildRequires: tar, ca-certificates, build-essential, cmake, curl, python3-devel, python3-setuptools, python3-wheel, python3-pip, python3-numpy, python3-flatbuffers, python3-packaging, python3-protobuf, python3-mpmath, python3-sympy +Requires: ca-certificates, python3-setuptools, python3-wheel, python3-pip, python3-numpy, python3-flatbuffers, python3-packaging, python3-protobuf, python3-mpmath, python3-sympy + +# use the auto build requires +%?python_enable_dependency_generator + +%description -n python3-onnxruntime +ONNX Runtime is a cross-platform inference and training machine-learning accelerator. ONNXRuntime with source build for CPU, licensed under the MIT License. + +%package help +Summary: docs for the onnxruntime +Provides: python3-onnxruntime-doc +%description help +description for the doc of the python3-onnxruntime's usage + +%prep +%autosetup -p1 -n onnxruntime-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{name} +%doc *.md +%license LICENSE +%{python3_sitelib}/%{name}/ + +%changelog +* Tue Mar 31 2024 Your Name <you@example.com> - 1.0.0-1 +- First build of ONNXRuntime for CPU |