mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
cleanup: CPACK_RPM_* package description
add cmake helper macro SET_IF_UNSET() and use it for CPACK_* variables
This commit is contained in:
parent
e47a143fc0
commit
ab3a6ca670
3 changed files with 21 additions and 21 deletions
|
@ -45,17 +45,8 @@ SET(CPACK_RPM_PACKAGE_LICENSE "GPLv2")
|
||||||
SET(CPACK_RPM_PACKAGE_RELOCATABLE FALSE)
|
SET(CPACK_RPM_PACKAGE_RELOCATABLE FALSE)
|
||||||
SET(CPACK_PACKAGE_RELOCATABLE FALSE)
|
SET(CPACK_PACKAGE_RELOCATABLE FALSE)
|
||||||
SET(CPACK_RPM_PACKAGE_GROUP "Applications/Databases")
|
SET(CPACK_RPM_PACKAGE_GROUP "Applications/Databases")
|
||||||
SET(CPACK_RPM_PACKAGE_SUMMARY ${CPACK_PACKAGE_SUMMARY})
|
|
||||||
SET(CPACK_RPM_PACKAGE_URL ${CPACK_PACKAGE_URL})
|
SET(CPACK_RPM_PACKAGE_URL ${CPACK_PACKAGE_URL})
|
||||||
SET(CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_RPM_PACKAGE_SUMMARY}
|
SET(CPACK_RPM_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION}")
|
||||||
|
|
||||||
It is GPL v2 licensed, which means you can use the it free of charge under the
|
|
||||||
conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
|
|
||||||
|
|
||||||
MariaDB documentation can be found at https://mariadb.com/kb
|
|
||||||
MariaDB bug reports should be submitted through https://jira.mariadb.org
|
|
||||||
|
|
||||||
")
|
|
||||||
|
|
||||||
SET(CPACK_RPM_shared_PACKAGE_VENDOR "MariaDB Corporation Ab")
|
SET(CPACK_RPM_shared_PACKAGE_VENDOR "MariaDB Corporation Ab")
|
||||||
SET(CPACK_RPM_shared_PACKAGE_LICENSE "LGPLv2.1")
|
SET(CPACK_RPM_shared_PACKAGE_LICENSE "LGPLv2.1")
|
||||||
|
|
|
@ -11,3 +11,9 @@ ELSE()
|
||||||
SET(__msg1_${id} ${hash} CACHE INTERNAL "")
|
SET(__msg1_${id} ${hash} CACHE INTERNAL "")
|
||||||
ENDFUNCTION()
|
ENDFUNCTION()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
MACRO(SET_IF_UNSET VAR VAL)
|
||||||
|
IF(NOT DEFINED ${VAR})
|
||||||
|
SET(${VAR} ${VAL})
|
||||||
|
ENDIF()
|
||||||
|
ENDMACRO()
|
||||||
|
|
|
@ -70,24 +70,27 @@ ENDMACRO()
|
||||||
GET_MYSQL_VERSION()
|
GET_MYSQL_VERSION()
|
||||||
|
|
||||||
SET(MYSQL_TCP_PORT_DEFAULT 0)
|
SET(MYSQL_TCP_PORT_DEFAULT 0)
|
||||||
IF(NOT MYSQL_TCP_PORT)
|
SET_IF_UNSET(MYSQL_TCP_PORT 3306)
|
||||||
SET(MYSQL_TCP_PORT 3306)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
IF(NOT COMPILATION_COMMENT)
|
SET_IF_UNSET(COMPILATION_COMMENT "Source distribution")
|
||||||
SET(COMPILATION_COMMENT "Source distribution")
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
INCLUDE(package_name)
|
INCLUDE(package_name)
|
||||||
IF(NOT CPACK_PACKAGE_FILE_NAME)
|
IF(NOT CPACK_PACKAGE_FILE_NAME)
|
||||||
GET_PACKAGE_FILE_NAME(CPACK_PACKAGE_FILE_NAME)
|
GET_PACKAGE_FILE_NAME(CPACK_PACKAGE_FILE_NAME)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT CPACK_SOURCE_PACKAGE_FILE_NAME)
|
SET_IF_UNSET(CPACK_SOURCE_PACKAGE_FILE_NAME "mariadb-${VERSION}")
|
||||||
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "mariadb-${VERSION}")
|
SET_IF_UNSET(CPACK_PACKAGE_CONTACT "MariaDB Developers <maria-developers@lists.launchpad.net>")
|
||||||
ENDIF()
|
SET_IF_UNSET(CPACK_PACKAGE_VENDOR "MariaDB Foundation")
|
||||||
SET(CPACK_PACKAGE_CONTACT "MariaDB Developers <maria-developers@lists.launchpad.net>")
|
SET_IF_UNSET(CPACK_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}
|
||||||
SET(CPACK_PACKAGE_VENDOR "MariaDB Foundation")
|
|
||||||
|
It is GPL v2 licensed, which means you can use the it free of charge under the
|
||||||
|
conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
|
||||||
|
|
||||||
|
MariaDB documentation can be found at https://mariadb.com/kb
|
||||||
|
MariaDB bug reports should be submitted through https://jira.mariadb.org
|
||||||
|
|
||||||
|
")
|
||||||
SET(CPACK_SOURCE_GENERATOR "TGZ")
|
SET(CPACK_SOURCE_GENERATOR "TGZ")
|
||||||
|
|
||||||
# Defintions for windows version resources
|
# Defintions for windows version resources
|
||||||
|
|
Loading…
Reference in a new issue