Spurs hold on to beat Dallas Mavericks