diff --git a/pytorch.spec b/pytorch.spec index ba89b7f632201e472fe313548ca8419615aa2f45..ba23d65be2e5e1b4f973618d4d687fb7cd3371d7 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: pytorch Version: 2.0.1 -Release: 1 +Release: 2 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration License: BSD-3 URL: https://pytorch.org/ @@ -54,8 +54,8 @@ You can reuse your favorite Python packages such as NumPy, SciPy and Cython to e %autosetup -p1 -n %{name}-v%{version} %build -export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" -export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" +export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC" +export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC" %pyproject_build %install @@ -85,6 +85,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Aug 17 2023 Dongxing Wang - 2.0.1-2 +- Fix the EulerMaker failure for verion 2.0.1 + * Mon Jul 24 2023 Dongxing Wang - 2.0.1-1 - upgrade to 2.0.1