add debug flags support to .spec