CPackRPM: handle scripts in debuginfo single package mode
requested to merge do-m-en/cmake:cpackrpm-debuginfo-single-package-install-erase-scripts into master
Enabling CPACK_RPM_DEBUGINFO_SINGLE_PACKAGE while using rpm install or erase scripts resulted in resulted missing scripts for non default components.
Fixes: #21974 (closed)