From e8890f274af67c6e6f6f3a98bb3641baced364e4 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Thu, 20 Mar 2014 04:20:15 +0000 Subject: [PATCH] Set additional DEB CPack variables in package.cmake.in. --- CMakeLists.txt | 2 +- cmake/package.cmake.in | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4fa4603..759fcb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -354,7 +354,7 @@ if (BUILD_PACKAGING) set (CPACK_PACKAGE_RELOCATABLE TRUE) set (CPACK_MONOLITHIC_INSTALL TRUE) - # RPM specification + # RPM package information -- used in cmake/package.cmake.in also for DEB set (CPACK_RPM_PACKAGE_GROUP "Development/Libraries") set (CPACK_RPM_PACKAGE_LICENSE "BSD") set (CPACK_RPM_PACKAGE_URL "http://code.google.com/p/gflags") diff --git a/cmake/package.cmake.in b/cmake/package.cmake.in index d4419a1..c3ebdc9 100644 --- a/cmake/package.cmake.in +++ b/cmake/package.cmake.in @@ -38,8 +38,10 @@ elseif (CPACK_GENERATOR MATCHES "DEB") set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386) endif () set (CPACK_DEBIAN_PACKAGE_DEPENDS) - set (CPACK_DEBIAN_PACKAGE_SECTION devel) - set (CPACK_DEBIAN_PACKAGE_PRIORITY optional) + set (CPACK_DEBIAN_PACKAGE_SECTION "devel") + set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional") + set (CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_RPM_PACKAGE_URL}") + set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR}") # ------------------------------------------------------------------------------ # RPM package