Add support for rotate to spec processor.