fix:#7760 use a proper fedora package name
This commit is contained in:
parent
949e1c0d71
commit
46915bff94
1 changed files with 2 additions and 0 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue