SABMiller will spend US$34m to build its first brewery in Namibia, stepping up competition with an alliance between Diageo and Heineken in the region.