fix:#7760 use a proper fedora package name

This commit is contained in:
sithlord48 2024-10-19 08:44:11 -04:00 committed by Chris Rizzitello
parent 949e1c0d71
commit 46915bff94

View file

@ -263,6 +263,8 @@ macro(check_is_rpm)
if("${DISTRO_NAME}" STREQUAL "opensuse-tumbleweed")
set(DISTRO_NAME "opensuse")
set(DISTRO_CODENAME "tumbleweed")
elseif(${DISTRO_NAME} STREQUAL "fedora")
set(RPM_CN "fc${DISTRO_VERSION_ID}")
elseif(("${DISTRO_NAME}" STREQUAL "almalinux") OR ("${DISTRO_NAME}" STREQUAL "rocky"))
string(REGEX MATCH [0-9]+ V "${DISTRO_VERSION_ID}")
set(RPM_CN "${DISTRO_NAME}${V}")