diff options
Diffstat (limited to '')
-rw-r--r-- | cmake/cpack_rpm.cmake | 40 |
1 files changed, 30 insertions, 10 deletions
diff --git a/cmake/cpack_rpm.cmake b/cmake/cpack_rpm.cmake index 030360b9..19915b60 100644 --- a/cmake/cpack_rpm.cmake +++ b/cmake/cpack_rpm.cmake @@ -10,28 +10,27 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7) SET(CPACK_RPM_COMPONENT_INSTALL ON) SET(CPACK_COMPONENT_SERVER_GROUP "server") -SET(CPACK_COMPONENT_MANPAGESSERVER_GROUP "server") SET(CPACK_COMPONENT_INIFILES_GROUP "server") SET(CPACK_COMPONENT_SERVER_SCRIPTS_GROUP "server") SET(CPACK_COMPONENT_SUPPORTFILES_GROUP "server") SET(CPACK_COMPONENT_DEVELOPMENT_GROUP "devel") +SET(CPACK_COMPONENT_DEVELOPMENTSYMLINKS_GROUP "devel") SET(CPACK_COMPONENT_MANPAGESDEVELOPMENT_GROUP "devel") SET(CPACK_COMPONENT_TEST_GROUP "test") -SET(CPACK_COMPONENT_MANPAGESTEST_GROUP "test") +SET(CPACK_COMPONENT_TESTSYMLINKS_GROUP "test") SET(CPACK_COMPONENT_CLIENT_GROUP "client") -SET(CPACK_COMPONENT_MANPAGESCLIENT_GROUP "client") SET(CPACK_COMPONENT_README_GROUP "server") SET(CPACK_COMPONENT_SHAREDLIBRARIES_GROUP "shared") SET(CPACK_COMPONENT_COMMON_GROUP "common") SET(CPACK_COMPONENT_CLIENTPLUGINS_GROUP "common") SET(CPACK_COMPONENT_COMPAT_GROUP "compat") SET(CPACK_COMPONENT_BACKUP_GROUP "backup") +SET(CPACK_COMPONENT_BACKUPSYMLINKS_GROUP "backup") -SET(CPACK_COMPONENTS_ALL Server ManPagesServer IniFiles Server_Scripts - SupportFiles Development ManPagesDevelopment - ManPagesTest Readme ManPagesClient Test - Common Client SharedLibraries ClientPlugins - backup +SET(CPACK_COMPONENTS_ALL Server IniFiles Server_Scripts SupportFiles + Development ManPagesDevelopment Readme Test Common + Client SharedLibraries ClientPlugins Backup + TestSymlinks BackupSymlinks DevelopmentSymlinks ) SET(CPACK_RPM_PACKAGE_NAME ${CPACK_PACKAGE_NAME}) @@ -108,6 +107,7 @@ SET(CPACK_RPM_SPEC_MORE_DEFINE " %define _sysconfdir ${INSTALL_SYSCONFDIR} %define restart_flag_dir %{_localstatedir}/lib/rpm-state/mariadb %define restart_flag %{restart_flag_dir}/need-restart +%define _lto_cflags %{nil} %define pretrans %{nil} @@ -182,6 +182,24 @@ MACRO(SETA var) ENDFOREACH() ENDMACRO(SETA) +FOREACH(SYM_COMPONENT Server Client) + STRING(TOLOWER ${SYM_COMPONENT}-compat SYM) + SET(SYMCOMP ${SYM_COMPONENT}Symlinks) + STRING(TOUPPER ${SYMCOMP} SYMCOMP_UPPER) + SET(CPACK_COMPONENT_${SYMCOMP_UPPER}_GROUP "${SYM}") + SET(CPACK_COMPONENTS_ALL "${CPACK_COMPONENTS_ALL}" "${SYMCOMP}") + SET(CPACK_RPM_${SYM}_PACKAGE_SUMMARY "MySQL compatible symlinks for MariaDB database ${SYM_COMPONENT} binaries/scripts") + SET(CPACK_RPM_${SYM}_PACKAGE_DESCRIPTION "${CPACK_RPM_PACKAGE_DESCRIPTION}") + SET(CPACK_RPM_${SYM}_PACKAGE_ARCHITECTURE "noarch") + SET(CPACK_RPM_${SYM}_USER_FILELIST ${ignored}) + STRING(TOLOWER ${SYM_COMPONENT} SYM_COMPONENT_LOWER) + SET(CPACK_RPM_${SYM}_PACKAGE_REQUIRES "MariaDB-${SYM_COMPONENT_LOWER} >= 11.0.0") + SETA(CPACK_RPM_${SYM_COMPONENT_LOWER}_PACKAGE_RECOMMENDS "MariaDB-${SYM}") +ENDFOREACH() + +SETA(CPACK_RPM_client_symlinks_PACKAGE_CONFLICTS + "MariaDB-server < 11.0.0") + SETA(CPACK_RPM_client_PACKAGE_OBSOLETES "mysql-client" "MySQL-client" @@ -191,7 +209,9 @@ SETA(CPACK_RPM_client_PACKAGE_PROVIDES "mysql-client" "mytop") SETA(CPACK_RPM_client_PACKAGE_CONFLICTS - "MariaDB-server < 10.6.0") + "MariaDB-server < 11.0.0") +SETA(CPACK_RPM_client_PACKAGE_REQUIRES + "MariaDB-common") SETA(CPACK_RPM_common_PACKAGE_CONFLICTS "MariaDB-server < 10.6.1") @@ -223,7 +243,7 @@ SETA(CPACK_RPM_test_PACKAGE_PROVIDES SETA(CPACK_RPM_server_PACKAGE_REQUIRES "MariaDB-common >= 10.6.1" - "MariaDB-client >= 10.6.1") + "MariaDB-client >= 11.0.0") IF(WITH_WSREP) SETA(CPACK_RPM_server_PACKAGE_REQUIRES |