The member of the partnership who first bid the denomination of the final contract.
In the first auction, West, who bids spades before East, becomes declarer.
In the second auction, West again becomes declarer. South is an opponent and so his 2♣ bid has no significance in determining the eventual declarer.