rpm-spec-mode is slightly out of date, one of the fixes in the latest upstream version (0.12.3x) is that it now correctly highlights the package name after %pretrans and %posttrans.
thanks for letting me know about the new upstream version. updated in emacs-23.1-8.fc12