File: copyright-file.patch

package info (click to toggle)
gromacs 2025.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 287,216 kB
  • sloc: xml: 3,718,478; cpp: 654,748; ansic: 75,282; python: 20,471; sh: 3,470; perl: 2,218; yacc: 644; fortran: 397; lisp: 265; makefile: 171; lex: 125; awk: 68; csh: 39
file content (31 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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/CMakeLists.txt
===================================================================
--- gromacs.orig/CMakeLists.txt
+++ gromacs/CMakeLists.txt
@@ -153,6 +153,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")
+
 include(gmxCTestUtilities)
 gmx_ctest_init()
 
@@ -1011,7 +1014,7 @@ endif()
 
 #COPYING file: Only necessary for binary distributions.
 #Simpler to always install.
-install(FILES COPYING DESTINATION ${GMX_INSTALL_GMXDATADIR} COMPONENT data)
+install(FILES DESTINATION ${GMX_INSTALL_GMXDATADIR} COMPONENT data)
 
 if (BUILD_TESTING)
     include(tests/CheckTarget.cmake)