buildrpm: fix rpm release number calculation
It was broken when patch queues were in use.
Welcome to Mercurial for Windows!
---------------------------------
For configuration and usage directions, please read the ReadMe.html
file that comes with this package.
Also check the release notes at:
http://www.selenic.com/mercurial/wiki/index.cgi/WhatsNew