The attached shell script contains the steps I used to build rpm-4.0.3 (with its included db) on an up-to-date cygwin. It is heavily based on the instructions by Mario Schmidt at http://rtfm.shagged.org/~mario/cygwin
Given the number of hacks to Makefile (using perl - I'm not fond of sed), I cannot exactly say it builds cleanly, but it still does pretty well. Max.
rpm403-build.dat
Description: Binary data
smime.p7s
Description: application/pkcs7-signature