Valentino Rossi put on a master class to dominate the Spanish GP, leading from start to finish to take his first win of the season.