Spidey owned by Sony. Only portion of production cost and profit shared to use Spidey in disney works like avengers.
Also marvel have creative ideas of Spidey and marvel character will appear in Spidey movie. This deal is there for 1 more movie.
Avatar at that time was fox now comes under disney