diff --git a/pytorch-v2.7.0.tar.gz b/pytorch-v2.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..83dc3f6ccc7225555c5076afa7ce83b43d4600b6 Binary files /dev/null and b/pytorch-v2.7.0.tar.gz differ diff --git a/pytorch.spec b/pytorch.spec index c04ea59aa98c919ed22e036fcf9f6e5e159d6002..62b36454af300dc56a4dc7f0276caed31b728126 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -1,7 +1,7 @@ -%define anolis_release 4 +%define anolis_release 1 %global vcu_maj 12 -%global vcu_min 1 +%global vcu_min 5 %global _lto_cflags %{nil} %global __cmake_in_source_build 1 %undefine _hardened_build @@ -10,10 +10,10 @@ %undefine _missing_build_ids_terminate_build Name: pytorch -Version: 2.0.1 +Version: 2.7.0 Release: %{anolis_release}%{dist} Summary: PyTorch Neural Network Package -License: BSD +License: BSD-3-Clause URL: https://pytorch.org Source0: https://github.com/pytorch/pytorch/releases/download/v%{version}/pytorch-v%{version}.tar.gz @@ -22,6 +22,16 @@ Patch0: 0001-Workaround-NVCC-parse-failure-in-cast_op.patch BuildRequires: python3-devel cmake gcc-c++ BuildRequires: python3-typing-extensions python3-pyyaml python3-setuptools BuildRequires: python3-six python3-numpy +BuildRequires: python3-filelock +BuildRequires: python3-fsspec +BuildRequires: python3-hypothesis +BuildRequires: python3-jinja2 +BuildRequires: python3-networkx +BuildRequires: python3-ninja +BuildRequires: python3-packaging +BuildRequires: python3-requests +BuildRequires: python3-sympy + BuildRequires: cuda-nvcc-%{vcu_maj}-%{vcu_min} BuildRequires: cuda-nvtx-%{vcu_maj}-%{vcu_min} @@ -136,6 +146,9 @@ end %{python3_sitearch}/torch/share %changelog +* Tue Nov 18 2025 lzq11122 - 2.0.1-5 +- Add patch to fix CVE-2025-32434 + * Thu Nov 2 2023 Zhongling He - 2.0.1-4 - fix NVCC parse failure in cast_op