A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of the spindle pole body (SPB). The SPB is the microtubule organizing center in fungi, and is functionally homologous to the animal cell centrosome.