Cooking or heating method specially adapted to the contents of the package