cmake: added conflicts and replaces fields
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 9 Jun 2014 13:49:35 +0000 (14:49 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Mon, 9 Jun 2014 13:49:35 +0000 (14:49 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
CMakeLists.txt
cmake/modules/CPackDeb.cmake

index bf286d0..9307de6 100644 (file)
@@ -78,6 +78,8 @@ if (IPK)
   set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DETECTED_ARCH})
   set(CPACK_SYSTEM_NAME ${DETECTED_ARCH})
   set(CPACK_DEBIAN_PACKAGE_PROVIDES "libmaa-dev, libmaa-dbg, libmaa-doc")
+  set(CPACK_DEBIAN_PACKAGE_REPLACES "libmaa-dev, libmaa-dbg, libmaa-doc")
+  set(CPACK_DEBIAN_PACKAGE_CONFLICTS "libmaa-dev, libmaa-dbg, libmaa-doc")
   set(WDIR "${CPACK_TOPLEVEL_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}")
   include (CPack)
 endif()
index 8193837..851b4f9 100644 (file)
@@ -195,6 +195,8 @@ Priority: optional
 Maintainer: ${CPACK_DEBIAN_PACKAGE_MAINTAINER}
 Depends:
 Provides: ${CPACK_DEBIAN_PACKAGE_PROVIDES}
+Replaces: ${CPACK_DEBIAN_PACKAGE_REPLACES}
+Conflicts: ${CPACK_DEBIAN_PACKAGE_CONFLICTS}
 Source: https://github.com/intel-iot-devkit/maa
 #Essential: no
 ")