What is the definition of a spouse with regards to South African Immigration laws?

The term spouse within the South African Immigration law means a person who is party to a marriage with a South African citizen or permanent resident, or a customary union or marriage with a South African citizen or permanent resident, or a permanent same-sex civil union with a South African citizen or permanent resident that has been registered.