CPack/RPM: handle extra slashes
Extra slashes in some locations can cause errors during package generation and can also be present in generated rpm packages causing issues for the package user.
Closes #16619
Extra slashes in some locations can cause errors during package generation and can also be present in generated rpm packages causing issues for the package user.
Closes #16619