Added spec file generation to discovery