From 28bca261fbe11deec13b62f128f056d83342b84c Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 4 Aug 2019 03:16:30 +0200 Subject: [PATCH] Fix mageia rpm suffix --- cmake/Rpm.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Rpm.cmake b/cmake/Rpm.cmake index bf511564..66dd3f2d 100644 --- a/cmake/Rpm.cmake +++ b/cmake/Rpm.cmake @@ -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()