Actually avast! does detect many spyware too.
Mostly it’s detected as Win32:Trojan-gen or it has tag [Adw] in the end of the name.
Some are also detected as Trojano-xxx (x are numbers).
But as other said,avast! is manly an antivirus so spyware detection isn’t it’s primary job.