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.
Add tests for RPM and DEB package test for currently supported dependency features (requires, provides, conflicts, ...).