From 0073eb52605fbe5f40b61887f925530bdcba6599 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 10 Jun 2024 14:03:07 -0400 Subject: [PATCH] Fix the normal build. Signed-off-by: Tom Rix --- python-torch.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-torch.spec b/python-torch.spec index e066b5d..6f102ca 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -181,6 +181,7 @@ Source40: https://github.com/Maratyszcza/pthreadpool/archive/%{pt_commit}/ Source50: https://github.com/mreineck/pocketfft/archive/%{pf_commit}/pocketfft-%{pf_scommit}.tar.gz %endif +%if %{with gitcommit} %if %{without opentelemetry} %global ot_ver 1.14.2 Source60: https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v%{ot_ver}.tar.gz @@ -197,6 +198,7 @@ Source70: https://github.com/yhirose/cpp-httplib/archive/%{hl_commit}/cpp- %global ki_scommit %(c=%{ki_commit}; echo ${c:0:7}) Source80: https://github.com/pytorch/kineto/archive/%{ki_commit}/kineto-%{ki_scommit}.tar.gz %endif +%endif Patch0: 0001-no-third_party-foxi.patch @@ -530,6 +532,7 @@ rm -rf third_party/pocketfft/* cp -r pocketfft-*/* third_party/pocketfft/ %endif +%if %{with gitcommit} %if %{without opentelemtry} tar xf %{SOURCE60} rm -rf third_party/opentelemetry-cpp/* @@ -547,6 +550,7 @@ tar xf %{SOURCE80} rm -rf third_party/kineto/* cp -r kineto-*/* third_party/kineto/ %endif +%endif %if %{with opencv} %if %{without gitcommit}