diff --git a/CMakeLists.txt b/CMakeLists.txt index c07f4fda2..639549f3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,4 +54,16 @@ file(GLOB DOCS Documentation/*.pdf) install(FILES server/test/MaxScale_test.cnf RENAME MaxScale.cnf DESTINATION etc) install(FILES ${ERRMSG} DESTINATION mysql) install(FILES ${EMBEDDED_LIB} DESTINATION lib) -install(FILES ${DOCS} DESTINATION Documentation) \ No newline at end of file +install(FILES ${DOCS} DESTINATION Documentation) + +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MaxScale") +set(CPACK_PACKAGE_NAME "MaxScale") +set(CPACK_GENERATOR "RPM") +set(CPACK_PACKAGE_VERSION_MAJOR "1") +set(CPACK_PACKAGE_VERSION_MINOR "0") +set(CPACK_PACKAGE_VERSION_PATCH "0") +set(CPACK_PACKAGE_FILE_NAME "maxscale-${MAXSCALE_VERSION}") +set(CPACK_RPM_PACKAGE_NAME "maxscale-${MAXSCALE_VERSION}") +set(CPACK_RPM_PACKAGE_VENDOR "SkySQL Ab") +set(CPACK_RPM_PACKAGE_AUTOREQPROV " no") +include(CPack) \ No newline at end of file