From ee5e19d461296c9861052b85773b55629b98d26d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 16 Apr 2024 11:59:07 +0000 Subject: automatic import of onnxruntime --- python-onnxruntime.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python-onnxruntime.spec b/python-onnxruntime.spec index 261f906..25a7695 100644 --- a/python-onnxruntime.spec +++ b/python-onnxruntime.spec @@ -75,10 +75,15 @@ bash build.sh --build_dir build \ --build_shared_lib \ --skip_submodule_sync +# Build python libs +mv ./onnxruntime ./onnxruntime.src +cp -R %{_builddir}/build/RelWithDebInfo/onnxruntime ./onnxruntime +cp %{_builddir}/build/RelWithDebInfo/requirements.txt ./requirements.txt %pyproject_build %install - +# onnxruntime +%__cmake --install %{_builddir}/build/RelWithDebInfo --prefix=%{buildroot} # doc mkdir -p "%{buildroot}/%{_docdir}/" cp --preserve=timestamps -r "./docs/" "%{buildroot}/%{_docdir}/%{name}" -- cgit v1.2.3