summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2012-03-22 16:16:11 +0100
committerBjorn Munch <bjorn.munch@oracle.com>2012-03-22 16:16:11 +0100
commit26c08ffa405224ced8540d794981bd947fd39168 (patch)
treed5bb50905946af96419320eb118ac27d577019f4 /support-files
parentfaa5e844bb3b0327e7072230719a36dd58a29bfd (diff)
downloadmariadb-git-26c08ffa405224ced8540d794981bd947fd39168.tar.gz
Merged some fixes from 7.2 release branches
Diffstat (limited to 'support-files')
-rw-r--r--support-files/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt
index f8a65e75d4d..3ad48520dfb 100644
--- a/support-files/CMakeLists.txt
+++ b/support-files/CMakeLists.txt
@@ -70,7 +70,14 @@ IF(UNIX)
INSTALL(FILES mysql.m4 DESTINATION ${INSTALL_SHAREDIR}/aclocal COMPONENT Development)
CONFIGURE_FILE(MySQL-shared-compat.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/MySQL-shared-compat.spec @ONLY)
CONFIGURE_FILE(mysql.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/mysql.spec @ONLY)
- CONFIGURE_FILE(mysql.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/mysql.${VERSION}.spec @ONLY)
+
+ SET(SPECFILENAME "mysql.${VERSION}.spec")
+ IF("${VERSION}" MATCHES "-ndb-")
+ STRING(REGEX REPLACE "^.*-ndb-" "" NDBVERSION "${VERSION}")
+ SET(SPECFILENAME "mysql-cluster-${NDBVERSION}.spec")
+ ENDIF()
+ CONFIGURE_FILE(mysql.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/${SPECFILENAME} @ONLY)
+
CONFIGURE_FILE(MySQL-shared-compat.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/MySQL-shared-compat.spec @ONLY)
SET(bindir ${prefix}/${INSTALL_BINDIR})