diff options
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/CMakeLists.txt | 39 | ||||
| -rw-r--r-- | debian/changelog.Debian.in | 6 | ||||
| -rw-r--r-- | debian/copyright.in | 10 |
3 files changed, 55 insertions, 0 deletions
diff --git a/debian/CMakeLists.txt b/debian/CMakeLists.txt new file mode 100644 index 00000000..8a272735 --- /dev/null +++ b/debian/CMakeLists.txt @@ -0,0 +1,39 @@ +find_program (GZIP_EXECUTABLE NAMES gzip) + +string (TIMESTAMP ts "%w, %d [%m] %Y %H:%M:%S +0000" UTC) + +set (__days Sun Mon Tue Wed Thu Fri Sat) +string (SUBSTRING ${ts} 0 1 __index) +list (GET __days ${__index} __day) +string (REPLACE "${__index}," "${__day}," ts ${ts}) + +set (__months Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) +string (SUBSTRING ${ts} 9 2 __month_index) +math (EXPR __index "${__month_index} - 1") +list (GET __months "${__index}" __month) +string (REPLACE "[${__month_index}]" "${__month}" ts ${ts}) + +set (deb_changelog changelog.Debian) +configure_file ( + "${CMAKE_CURRENT_SOURCE_DIR}/${deb_changelog}.in" + "${CMAKE_CURRENT_BINARY_DIR}/${deb_changelog}" + @ONLY) + +add_custom_target (debian + COMMAND ${GZIP_EXECUTABLE} -cf9 ${deb_changelog} > ${deb_changelog}.gz + DEPENDS ${deb_changelog}.in + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Compressing Debian changelog" + ) + +configure_file ( + "${CMAKE_CURRENT_SOURCE_DIR}/copyright.in" + "${CMAKE_CURRENT_BINARY_DIR}/copyright" + @ONLY) + +install (FILES + ${CMAKE_CURRENT_BINARY_DIR}/${deb_changelog}.gz + ${CMAKE_CURRENT_BINARY_DIR}/copyright + DESTINATION ${WSJT_SHARE_DESTINATION}/${WSJT_DOC_DESTINATION} + #COMPONENT Debian + ) diff --git a/debian/changelog.Debian.in b/debian/changelog.Debian.in new file mode 100644 index 00000000..c0016242 --- /dev/null +++ b/debian/changelog.Debian.in @@ -0,0 +1,6 @@ +@CMAKE_PROJECT_NAME@ (@wsjtx_VERSION@) experimental; urgency=low + + * wsjtx Debian maintainer and upstream author are identical. + Therefore see also normal changelog file for Debian changes. + + -- @PROJECT_CONTACT@ @ts@ diff --git a/debian/copyright.in b/debian/copyright.in new file mode 100644 index 00000000..110219a9 --- /dev/null +++ b/debian/copyright.in @@ -0,0 +1,10 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Name: @CMAKE_PROJECT_NAME@ +Upstream-Maintainer: @PROJECT_CONTACT@ +Upstream-Source: @PROJECT_HOMEPAGE@ + +Files: * +Copyright: @PROJECT_COPYRIGHT@. +License: GPL v3 + The full text of the GPL is distributed in + /usr/share/common-licenses/GPL-3 on Debian systems. |
