diff options
author | Alex Neundorf <neundorf@kde.org> | 2023-10-14 21:21:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-27 15:26:37 (GMT) |
commit | 53991e62daf819a91b7c89f4d4899d0f94c7fd12 (patch) | |
tree | 273a48b4e8f0a5a34e54c582fb101e3cb7529b35 /Help/cpack_gen | |
parent | f2a6d423da1400108327bff5a27647b6d1d90392 (diff) | |
download | CMake-53991e62daf819a91b7c89f4d4899d0f94c7fd12.zip CMake-53991e62daf819a91b7c89f4d4899d0f94c7fd12.tar.gz CMake-53991e62daf819a91b7c89f4d4899d0f94c7fd12.tar.bz2 |
CPack/RPM: Append .rpm to CPACK_RPM_FILE_NAME if missing
Previously we issued an error when the `.rpm` suffix is missing.
Instead, append the suffix automatically. This matches the behavior of
`CPACK_ARCHIVE_FILE_NAME`, to which the archive format suffix is
automatically appended. With this change, developers can simply do
set(CPACK_RPM_comp_FILE_NAME "${CPACK_ARCHIVE_comp_FILE_NAME}")
Diffstat (limited to 'Help/cpack_gen')
-rw-r--r-- | Help/cpack_gen/rpm.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Help/cpack_gen/rpm.rst b/Help/cpack_gen/rpm.rst index ebdb721..4a2ce5f 100644 --- a/Help/cpack_gen/rpm.rst +++ b/Help/cpack_gen/rpm.rst @@ -89,8 +89,13 @@ List of CPack RPM generator specific variables: ``RPM-DEFAULT`` Tell ``rpmbuild`` to automatically generate the package file name. - ``<file-name>.rpm`` - Use the given file name. The ``.rpm`` suffix is required. + ``<file-name>[.rpm]`` + Use the given file name. + + .. versionchanged:: 3.29 + + The ``.rpm`` suffix will be automatically added if missing. + Previously the suffix was required. .. note:: |