Spending is a gerund or present participle of a word "SPEND."
1. Give (money) to pay for goods, services, or so as to benefit someone or something.
2. Pass (time) in a specified way or in a particular place.
I have been spending a lot of time here working with it.