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-5.1/CMakeLists.txt
===================================================================
--- gromacs-5.1.orig/CMakeLists.txt
+++ gromacs-5.1/CMakeLists.txt
@@ -89,6 +89,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...
@@ -844,7 +847,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_EXTERNAL_BOOST)
     include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
