generate spec.opts