spec and output dir