You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.6 KiB

  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. IF(UNIX)
  16. SET(prefix ${CMAKE_INSTALL_PREFIX})
  17. SET(SPECFILENAME "mysql.${VERSION}.spec")
  18. IF("${VERSION}" MATCHES "-ndb-")
  19. STRING(REGEX REPLACE "^.*-ndb-" "" NDBVERSION "${VERSION}")
  20. SET(SPECFILENAME "mysql-cluster-${NDBVERSION}.spec")
  21. ENDIF()
  22. # Left in current directory, to be taken during build
  23. CONFIGURE_FILE(mysql.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/${SPECFILENAME} @ONLY)
  24. FOREACH(ulnfile filter-requires-mysql.sh generate-tarball.sh my.cnf my_config.h
  25. mysql-5.5-errno.patch mysql-5.5-fix-tests.patch mysql-5.5-libdir.patch
  26. mysql-5.5-mtr1.patch mysql-5.5-stack-guard.patch mysql-5.5-testing.patch
  27. mysql-chain-certs.patch mysql-embedded-check.c mysql-expired-certs.patch
  28. mysql.init mysql-install-test.patch mysql-strmov.patch scriptstub.c
  29. README.mysql-docs)
  30. CONFIGURE_FILE(${ulnfile} ${CMAKE_CURRENT_BINARY_DIR}/${ulnfile} COPYONLY)
  31. ENDFOREACH()
  32. ENDIF()