From 741c412249afb0dabfb37cdc6f3bbd05ce3ec176 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Fri, 17 Oct 2025 10:05:50 -0700 Subject: [PATCH] Remove pytorch-rpm-macros package. This does not work when building on a general arch Signed-off-by: Tom Rix --- python-torch.spec | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/python-torch.spec b/python-torch.spec index 0fd7ebd..b623dc6 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -254,14 +254,6 @@ PyTorch is a Python package that provides two high-level features: You can reuse your favorite Python packages such as NumPy, SciPy, and Cython to extend PyTorch when needed. -%package -n pytorch-rpm-macros -Summary: PyTorch RPM macros -BuildArch: noarch - -%description -n pytorch-rpm-macros -This package contains PyTorch related RPM macros. - - %if %{with test} %package -n python3-%{pypi_name}-test Summary: Tests for %{name} @@ -510,7 +502,7 @@ sed -i -e 's@${PROJECT_SOURCE_DIR}/third_party/concurrentqueue@/usr/include/conc %build # Export the arches -echo "%%pytorch_arches %pt_arches" > macros.pytorch +# echo "%%pytorch_arches %pt_arches" > macros.pytorch # # Control the number of jobs @@ -650,8 +642,8 @@ export PYTORCH_ROCM_ARCH=%{rocm_gpu_list_default} %install # pytorch rpm macros -install -Dpm 644 macros.pytorch \ - %{buildroot}%{_rpmmacrodir}/macros.pytorch +# install -Dpm 644 macros.pytorch \ +# %{buildroot}%{_rpmmacrodir}/macros.pytorch %if %{with rocm} export USE_ROCM=ON @@ -688,9 +680,6 @@ export PYTORCH_ROCM_ARCH=%{rocm_gpu_list_default} %{python3_sitearch}/%{pypi_name}* %{python3_sitearch}/functorch -%files -n pytorch-rpm-macros -%{_rpmmacrodir}/macros.pytorch - %changelog %autochangelog