added custom spec file option to pbrc and wgs