I've been trying to get NetworkManager rebuilt from the src.rpm for OpenSUSE 10.3 because the DHCP timeout is too short for one of the networks I need to connect to (Ubuntu 7.10 can connect fine with a 60 second timeout).
rpm -ivh NetworkManager-0.6.5-37.4.src.rpm
rpmbuild -bp --target=i586 /usr/src/packages/SPECS/NetworkManager.s
NM_DHCP_TIMEOUT from 45 to 60
rpmbuild -bc --short-circuit --target=i586 /usr/src/packages/SPECS/NetworkManager.s
rpmbuild -bi --short-circuit --target=i586 /usr/src/packages/SPECS/NetworkManager.s
Now, 'install' complains about not finding NetworkManager.spec in SOURCES (which it wouldn't, because it's in SPECS) and doesn't seem to actually install and rpmbuild -ba or -bb redo the prep stage narking any change made to the source before going through compile and install stages.
So, I can't get it installed through rpmbuild and 'make install' throws up errors I can't be bothered to deal with just yet.