Skip to content

Commit 3da1535

Browse files
author
Joerg Bruehe
committed
More changes to supporting the build of RPMs for ULN
from the MySQL 5.5 source tree. Contrary to the comment, the spec file for these ULN RPMs was missing in the previous changeset (blame ".bzrignore"). This change now brings said spec file, and it adds cmake handling for the new files. Still for internal tool tests only, not yet ready for publishing.
1 parent a61c7c3 commit 3da1535

File tree

4 files changed

+1880
-1
lines changed

4 files changed

+1880
-1
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ IF(NOT WITHOUT_SERVER)
324324
IF(UNIX)
325325
ADD_SUBDIRECTORY(man)
326326
ENDIF()
327+
ADD_SUBDIRECTORY(SPECIFIC-ULN)
327328
ENDIF()
328329

329330
INCLUDE(cmake/abi_check.cmake)

SPECIFIC-ULN/CMakeLists.txt

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License as published by
5+
# the Free Software Foundation; version 2 of the License.
6+
#
7+
# This program is distributed in the hope that it will be useful,
8+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
# GNU General Public License for more details.
11+
#
12+
# You should have received a copy of the GNU General Public License
13+
# along with this program; if not, write to the Free Software
14+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15+
16+
17+
IF(UNIX)
18+
SET(prefix ${CMAKE_INSTALL_PREFIX})
19+
20+
SET(SPECFILENAME "mysql.${VERSION}.spec")
21+
IF("${VERSION}" MATCHES "-ndb-")
22+
STRING(REGEX REPLACE "^.*-ndb-" "" NDBVERSION "${VERSION}")
23+
SET(SPECFILENAME "mysql-cluster-${NDBVERSION}.spec")
24+
ENDIF()
25+
26+
# Left in current directory, to be taken during build
27+
CONFIGURE_FILE(mysql.spec.sh ./${SPECFILENAME} @ONLY)
28+
ENDIF()

0 commit comments

Comments
 (0)