Name: onnxruntime Version: 1.11.1 Release: 1%{?dist} Summary: Open Source Machine Learning Inference and Training Acceleration License: MIT URL: https://github.com/microsoft/onnxruntime Source0: https://openi.pcl.ac.cn/JunJun-Liu/onnx-runtime/onnxruntime-1.11.1.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: python3-devel BuildRequires: python3-pytorch >= 2.0.1 Requires: libc6 Requires: python3-pytorch >= 2.0.1 %description ONNX Runtime is a performance-focused scoring engine for Open Neural Network Exchange (ONNX) models. ONNX Runtime provides an open source format for AI models. %prep %setup -q -n onnxruntime-%{version} %build mkdir build && cd build %cmake ../cmake -DONNXRUNTIME_VERSION=%{version} -DCMAKE_BUILD_TYPE=Release -Donnxruntime_BUILD_SHARED_LIB=ON %make_build %install %make_install DESTDIR=%{buildroot} %files %license LICENSE %doc README.md %{_bindir}/* %changelog * Wed Feb 28 2024 JunjunLiu - 1.11.1-1 - Initial RPM package - Include submodules update in prep section