Yes, it can mean to exhaust oneself. However, this phrase isn't very common (at least not where I'm from). I've never heard it before. A similar phrase is "to wear (oneself) out." It also means to exhaust oneself, but it's much more common. So instead of saying "the hurricane gradually spent itself," I would say "the hurricane gradually wore itself out." Hope this is helpful :)