From 5d1bd21efdaaa70acf3190c4779bd7d5eb844f65 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sun, 5 May 2024 15:43:38 -0400 Subject: [PATCH] Collect the buildrequires that depend on F40 together. Signed-off-by: Tom Rix --- python-torch.spec | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/python-torch.spec b/python-torch.spec index 02bdeff..f9e4c70 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -155,8 +155,6 @@ BuildRequires: fmt-devel %if %{with caffe2} BuildRequires: foxi-devel %endif -BuildRequires: FP16-devel -BuildRequires: fxdiv-devel BuildRequires: gcc-c++ BuildRequires: gcc-gfortran %if %{with distributed} @@ -173,12 +171,19 @@ BuildRequires: openmpi-devel %endif %endif BuildRequires: openblas-devel -BuildRequires: pocketfft-devel BuildRequires: protobuf-devel -BuildRequires: pthreadpool-devel -BuildRequires: psimd-devel BuildRequires: sleef-devel BuildRequires: valgrind-devel + +# These packages came in F40 +%if 0%{?fedora} > 39 +BuildRequires: FP16-devel +BuildRequires: fxdiv-devel +BuildRequires: pocketfft-devel +BuildRequires: psimd-devel +BuildRequires: pthreadpool-devel +%endif + %if %{with xnnpack} BuildRequires: xnnpack-devel = 0.0^git20240229.fcbf55a %endif