spin is an intrinsic angular momentum of Dirac field. you can derive it by investigation of invariance of Dirac Lagrangian under a infinitesimal variation of spinors. spinors are imaginary entities.you can not define spin as function of space-time(it may be possible in string theory??)