CPackRPM: Fix misleading CPACK_RPM_SPEC_INSTALL_POST docs

This commit is contained in:
Craig Scott
2018-05-12 11:29:41 +10:00
parent 2ae2f0ca98
commit 78f0dcdcc9

View File

@@ -410,17 +410,17 @@
# #
# .. variable:: CPACK_RPM_SPEC_INSTALL_POST # .. 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 # * Mandatory : NO
# * Default : - # * Default : -
# * Deprecated: YES # * Deprecated: YES
# #
# This way of specifying post-install script is deprecated, use # May be used to override the ``__spec_install_post`` section within the
# :variable:`CPACK_RPM_POST_INSTALL_SCRIPT_FILE`. # generated spec file. This affects the install step during package creation,
# May be used to set an RPM post-install command inside the spec file. # not during package installation. For adding operations to be performed
# For example setting it to ``/bin/true`` may be used to prevent # during package installation, use
# rpmbuild to strip binaries. # :variable:`CPACK_RPM_POST_INSTALL_SCRIPT_FILE` instead.
# #
# .. variable:: CPACK_RPM_SPEC_MORE_DEFINE # .. variable:: CPACK_RPM_SPEC_MORE_DEFINE
# #
@@ -429,7 +429,11 @@
# * Mandatory : NO # * Mandatory : NO
# * Default : - # * 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 # .. variable:: CPACK_RPM_PACKAGE_DEBUG
# #