Spin fluctuations and superconductivity in UPt3