Build rpm and deb packages.