[CMake] [CPACK] [RPM] Support of %preun and %postun

Domen Vrankar domen.vrankar at gmail.com
Thu Oct 23 03:03:15 EDT 2014


2014-10-23 1:57 GMT+02:00 Luc J. Bourhis <luc_j_bourhis at mac.com>:

> Am I missing something or there is no equivalent of
> CPACK_RPM_PRE_INSTALL_SCRIPT_FILE to specify %preun or %postun?
>
>
The variables are missing in documentation but they exist.

For %preun you can set CPACK_RPM_PRE_UNINSTALL_READ_FILE or
CPACK_RPM_<component>_PRE_UNINSTALL_SCRIPT_FILE for component packaging.
For %postun you can set CPACK_RPM_POST_UNINSTALL_READ_FILE  or
CPACK_RPM_<component>_POST_UNINSTALL_SCRIPT_FILE for component packaging.

Regards,
Domen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141023/2bf4b172/attachment.html>


More information about the CMake mailing list