[opencv] 08/19: Fixed wrong-name-for-changelog-of-native-package warning for deb packages.
Mattia Rizzolo
mattia at debian.org
Tue Oct 4 17:51:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag 2.4.12.3
in repository opencv.
commit 1ea65689519c1f907d6ff2a01f46485be0ee6076
Author: Alexander Smorkalov <alexander.smorkalov at itseez.com>
Date: Thu Sep 24 15:52:17 2015 +0300
Fixed wrong-name-for-changelog-of-native-package warning for deb packages.
(cherry picked from commit cb1dc7cb6e8886f02864467aeae6c584a7eccc76)
---
cmake/OpenCVPackaging.cmake | 13 +++++++++++++
cmake/templates/changelog.Debian.in | 3 ++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/cmake/OpenCVPackaging.cmake b/cmake/OpenCVPackaging.cmake
index f6d5bd0..a1151c1 100644
--- a/cmake/OpenCVPackaging.cmake
+++ b/cmake/OpenCVPackaging.cmake
@@ -201,6 +201,19 @@ if(CPACK_GENERATOR STREQUAL "DEB")
install(FILES "${DEBIAN_CHANGELOG_OUT_FILE_GZ}"
DESTINATION "share/doc/${CPACK_DEBIAN_COMPONENT_${comp_upcase}_NAME}"
COMPONENT "${comp}")
+
+ set(CHANGELOG_OUT_FILE "${CMAKE_BINARY_DIR}/deb-packages-gen/${comp}/changelog")
+ set(CHANGELOG_OUT_FILE_GZ "${CMAKE_BINARY_DIR}/deb-packages-gen/${comp}/changelog.gz")
+ file(WRITE ${CHANGELOG_OUT_FILE} "Upstream changelog stub. See https://github.com/Itseez/opencv/wiki/ChangeLog")
+
+ execute_process(COMMAND "${GZIP_TOOL}" "-cf9" "${CHANGELOG_OUT_FILE}"
+ OUTPUT_FILE "${CHANGELOG_OUT_FILE_GZ}"
+ WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
+
+ install(FILES "${CHANGELOG_OUT_FILE_GZ}"
+ DESTINATION "share/doc/${CPACK_DEBIAN_COMPONENT_${comp_upcase}_NAME}"
+ COMPONENT "${comp}")
+
endforeach()
endif()
diff --git a/cmake/templates/changelog.Debian.in b/cmake/templates/changelog.Debian.in
index 70486e8..a47ec42 100644
--- a/cmake/templates/changelog.Debian.in
+++ b/cmake/templates/changelog.Debian.in
@@ -1,4 +1,5 @@
@CHANGELOG_PACKAGE_NAME@ (@CPACK_PACKAGE_VERSION@) unstable; urgency=low
- * Debian changelog stub. See upstream changelog or release notes in user
+ * Debian changelog stub. See https://github.com/Itseez/opencv/wiki/ChangeLog
+ or release notes in user
documentation for more details.
-- @CPACK_PACKAGE_CONTACT@ @CHANGELOG_PACKAGE_DATE@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list