# .NET's name for the architecture %dotnet_runtime_arch %{lua: local target = rpm.expand("%{_target_cpu}") local arch = "x64" if target == "aarch64" then arch = "arm64" elseif target == "ppc64le" then arch = "ppc64le" elseif target == "s390x" then arch = "s390x" elseif target == "x86_64" then arch = "x64" end print(arch) } # .NET's identifier for the OS+architecture combination %dotnet_runtime_id %(. /etc/os-release ; echo "${ID}.${VERSION_ID%%.*}")-%{dotnet_runtime_arch}