Fix mageia rpm suffix

This commit is contained in:
Jonas Kvinge 2019-08-04 03:16:30 +02:00
parent 2ab5bc1ad2
commit 28bca261fb
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ if (LSB_RELEASE_EXEC AND RPMBUILD_EXEC)
set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file")
endif()
elseif (${DIST_NAME} STREQUAL "mageia")
if (DIST_VERSION)
set(RPM_DISTRO "${DIST_VERSION}" CACHE STRING "Suffix of the rpm file")
if (DIST_RELEASE)
set(RPM_DISTRO "mga${DIST_RELEASE}" CACHE STRING "Suffix of the rpm file")
else ()
set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file")
endif()