Merge topic 'cpack-rpm-weak-deps-tags'

14baa13ab8 CPack/RPM: Add support for all weak dependency tags
847f515934 Tests: Simplify RunCMake.CPack_RPM.SUGGESTS expected output

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10415
This commit is contained in:
Brad King
2025-03-04 13:47:16 +00:00
committed by Kitware Robot
21 changed files with 256 additions and 2 deletions
+45
View File
@@ -439,6 +439,51 @@ List of CPack RPM generator specific variables:
variable. Note that you must enclose the entire value between quotes when
setting this variable.
.. variable:: CPACK_RPM_PACKAGE_RECOMMENDS
CPACK_RPM_<component>_PACKAGE_RECOMMENDS
.. versionadded:: 4.1
RPM spec recommends field.
:Mandatory: No
:Default:
May be used to set weak RPM dependencies (recommends). If ``rpmbuild`` doesn't
support the ``Recommends`` tag, CPack will emit a warning and ignore this
variable. Note that you must enclose the entire value between quotes when
setting this variable.
.. variable:: CPACK_RPM_PACKAGE_SUPPLEMENTS
CPACK_RPM_<component>_PACKAGE_SUPPLEMENTS
.. versionadded:: 4.1
RPM spec supplements field.
:Mandatory: No
:Default:
May be used to set weak RPM dependencies (supplements). If ``rpmbuild`` doesn't
support the ``Supplements`` tag, CPack will emit a warning and ignore this
variable. Note that you must enclose the entire value between quotes when
setting this variable.
.. variable:: CPACK_RPM_PACKAGE_ENHANCES
CPACK_RPM_<component>_PACKAGE_ENHANCES
.. versionadded:: 4.1
RPM spec enhances field.
:Mandatory: No
:Default:
May be used to set weak RPM dependencies (enhances). If ``rpmbuild`` doesn't
support the ``Enhances`` tag, CPack will emit a warning and ignore this
variable. Note that you must enclose the entire value between quotes when
setting this variable.
.. variable:: CPACK_RPM_PACKAGE_PROVIDES
CPACK_RPM_<component>_PACKAGE_PROVIDES
@@ -0,0 +1,8 @@
cpack-rpm-weak-deps-tags
------------------------
* The :cpack_gen:`CPack RPM Generator` gained
:variable:`CPACK_RPM_PACKAGE_ENHANCES`,
:variable:`CPACK_RPM_PACKAGE_RECOMMENDS`, and
:variable:`CPACK_RPM_PACKAGE_SUPPLEMENTS`
variables to specify the corresponding RPM spec fields.