Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions onnxruntime.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
### RPM external onnxruntime 1.7.2
### RPM external onnxruntime 1.10.0
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES}
%define github_user cms-externals
%define branch cms/v%{realversion}
%define tag d594f80cdf0a50a490eec4a807bb670ecce149d6
%define tag 7a6355a2780cd18ed0cb3f4a1ceb664391a0bf0c
Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&submodules=1&output=/%{n}-%{realversion}.tgz
#GCC 11 Fix
Source1: https://github.com/microsoft/onnxruntime/commit/de4089f8cbe0baffe56a363cc3a41595cc8f0809.patch

BuildRequires: cmake ninja
Requires: protobuf py3-numpy py3-wheel py3-onnx zlib libpng py3-pybind11 cuda
Expand All @@ -15,7 +13,6 @@ Requires: cudnn

%prep
%setup -q -n %{n}-%{realversion}
patch -p1 < %{_sourcedir}/de4089f8cbe0baffe56a363cc3a41595cc8f0809.patch

%build
rm -rf ../build; mkdir ../build; cd ../build
Expand Down