Description: Install only a single copyright file
 Avoid duplication of COPYING and debian/copyright.  A symlink is provided
 between the two.
Author: Nicholas Breen
Origin: vendor
Forwarded: not-needed
Last-Update: 2015-09-26
---
Index: gromacs-2016.4/CMakeLists.txt
===================================================================
--- gromacs-2016.4.orig/CMakeLists.txt
+++ gromacs-2016.4/CMakeLists.txt
@@ -90,6 +90,9 @@ set(build_types_with_explicit_flags RELE
 
 set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
 
+# Debian specific, see debian/patches/copyright-file.patch
+set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/debian/copyright")
+
 # Set a default valgrind suppression file.
 # This unfortunately needs to duplicate information from CTest to work as
 # expected...
@@ -862,7 +865,7 @@ endif()
 
 #COPYING file: Only necessary for binary distributions.
 #Simpler to always install.
-install(FILES COPYING DESTINATION ${DATA_INSTALL_DIR} COMPONENT data)
+install(FILES DESTINATION ${DATA_INSTALL_DIR} COMPONENT data)
 
 if (GMX_BUILD_FOR_COVERAGE)
     # Code heavy with asserts makes conditional coverage close to useless metric,
