diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-05-12 01:29:41 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-05-12 01:31:25 (GMT) |
commit | 78f0dcdcc90d53f3636d511262f797585f170ae7 (patch) | |
tree | 0a36d8adb866319617d3eed26b886502ad5af00d /Modules | |
parent | 2ae2f0ca983c52300a8d0583083756371cbeac5e (diff) | |
download | CMake-78f0dcdcc90d53f3636d511262f797585f170ae7.zip CMake-78f0dcdcc90d53f3636d511262f797585f170ae7.tar.gz CMake-78f0dcdcc90d53f3636d511262f797585f170ae7.tar.bz2 |
CPackRPM: Fix misleading CPACK_RPM_SPEC_INSTALL_POST docs
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CPackRPM.cmake | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake index 305af3c..60b3abe 100644 --- a/Modules/CPackRPM.cmake +++ b/Modules/CPackRPM.cmake @@ -410,17 +410,17 @@ # # .. variable:: CPACK_RPM_SPEC_INSTALL_POST # -# Deprecated - use :variable:`CPACK_RPM_POST_INSTALL_SCRIPT_FILE` instead. +# Deprecated - use :variable:`CPACK_RPM_SPEC_MORE_DEFINE` instead. # # * Mandatory : NO # * Default : - # * Deprecated: YES # -# This way of specifying post-install script is deprecated, use -# :variable:`CPACK_RPM_POST_INSTALL_SCRIPT_FILE`. -# May be used to set an RPM post-install command inside the spec file. -# For example setting it to ``/bin/true`` may be used to prevent -# rpmbuild to strip binaries. +# May be used to override the ``__spec_install_post`` section within the +# generated spec file. This affects the install step during package creation, +# not during package installation. For adding operations to be performed +# during package installation, use +# :variable:`CPACK_RPM_POST_INSTALL_SCRIPT_FILE` instead. # # .. variable:: CPACK_RPM_SPEC_MORE_DEFINE # @@ -429,7 +429,11 @@ # * Mandatory : NO # * Default : - # -# May be used to add any ``%define`` lines to the generated spec file. +# May be used to add any ``%define`` lines to the generated spec file. An +# example of its use is to prevent stripping of executables (but note that +# this may also disable other default post install processing):: +# +# set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true") # # .. variable:: CPACK_RPM_PACKAGE_DEBUG # |