fix rpm pkg spec and flags