Execute custom code (sed) when RPM SPEC is generated

The above correctly solved the issue, though the correct variable is CPACK_PACKAGING_INSTALL_PREFIX, not CMAKE_INSTALL_PREFIX.

Thanks for clarifying a closed door and triggering the thought process which led to a correct solution instead of a kludge.