Implement captureposprimspec.