From 516e028901c9bead498ff40f53fa6fe405d20689 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Thu, 20 Mar 2014 03:23:08 +0000 Subject: [PATCH] Set RPM generator specific variables. --- CMakeLists.txt | 1 + cmake/package.cmake.in | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46e8b68..f93c1f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -349,6 +349,7 @@ if (BUILD_PACKAGING) set (CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_LIST_DIR}/README.txt") set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_LIST_DIR}/COPYING.txt") set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_LIST_DIR}/README.txt") + set (CPACK_RESOURCE_FILE_CHANGELOG "${CMAKE_CURRENT_LIST_DIR}/ChangeLog.txt") set (CPACK_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") set (CPACK_OUTPUT_FILE_PREFIX packages) set (CPACK_PACKAGE_RELOCATABLE TRUE) diff --git a/cmake/package.cmake.in b/cmake/package.cmake.in index 05f378f..3414d21 100644 --- a/cmake/package.cmake.in +++ b/cmake/package.cmake.in @@ -51,4 +51,9 @@ elseif ("^${CPACK_GENERATOR}$" STREQUAL "RPM") endif () set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${CPACK_PACKAGE_VERSION}-1_${CMAKE_SYSTEM_PROCESSOR}") + set (CPACK_RPM_PACKAGE_GROUP "Development/Libraries") + set (CPACK_RPM_PACKAGE_LICENSE "BSD") + set (CPACK_RPM_PACKAGE_URL "http://code.google.com/p/gflags") + set (CPACK_RPM_CHANGELOG_FILE "@CPACK_RESOURCE_FILE_CHANGELOG@") + endif ()