Fix Fedora RPM suffix

This commit is contained in:
Jonas Kvinge
2018-09-18 18:43:04 +02:00
parent edba837295
commit feb0e1c45b

View File

@@ -46,8 +46,8 @@ if (LSB_RELEASE_EXEC)
COMMAND rpmbuild -bb ${CMAKE_SOURCE_DIR}/dist/opensuse/strawberry.spec COMMAND rpmbuild -bb ${CMAKE_SOURCE_DIR}/dist/opensuse/strawberry.spec
) )
elseif (${DIST_NAME} STREQUAL "fedora") elseif (${DIST_NAME} STREQUAL "fedora")
if (DIST_RELEASE) if (DIST_VERSION)
set(RPM_DISTRO ${DIST_NAME}${DIST_RELEASE} CACHE STRING "Suffix of the rpm file") set(RPM_DISTRO "${DIST_NAME}${DIST_VERSION}" CACHE STRING "Suffix of the rpm file")
else () else ()
set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file") set(RPM_DISTRO ${DIST_NAME} CACHE STRING "Suffix of the rpm file")
endif() endif()