diff --git a/python-torch.spec b/python-torch.spec index 640adb3..38ba020 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -266,6 +266,8 @@ cp %{SOURCE1000} . %else %autosetup -p1 -n pytorch-v%{version} +# GitHub release tarballs identify the version as an alpha, so replace that +echo "%{pypi_version}" > version.txt %endif # Remove bundled egg-info