[packaging] add debug package and copyright, use lto