This patch preserves backward compatibility of deb package names with previous CMake versions but similarly to CPack/RPM allows to change package name format and supports DEB-DEFAULT setting that produces proper Debian package names.
New CPack/Deb tests and changes to old tests as package file names and inter component dependency detection was changed.
Add tests for RPM and DEB package test for currently supported dependency features (requires, provides, conflicts, ...).