Determine spec values and temp file name.