dotnet10.0/macros.dotnet
Omair Majid 44196febdb Initial commit on c8s
Originally imported from:
243efe5136

Resolves: RHEL-98673
2025-08-01 18:53:00 -04:00

19 lines
486 B
Plaintext

# .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}