Description of problem: rpmbuild seems to ignore the -r option when invoked as $ rpmbuild -r 'dir' -bp some.spec It always looks for the source tarball in /usr/src/redhat/SOURCES instead of 'dir/usr/src/redhat/SOURCES' Version-Release number of selected component (if applicable): 4.2.1 How reproducible: very. I've used doxygen as an example here. Steps to Reproduce: 1. mkdir -p ~/work/usr/src/redhat/SOURCES ~/work/usr/src/redhat/SPECS 2. cd ~/work 1. wrk=~/work 2. rpm -i --root=$wrk $SRPMS/doxygen-1.3.4-1.src.rpm 3. specdir=$wrk/usr/src/redhat/SPECS 3. rpmbuild -r $wrk -bp $specdir/doxygen.spec Actual results: rpm complains about NOKEY but otherwise does its job. error: File /usr/src/redhat/SOURCES/doxygen-1.3.4.src.tar.gz: No such file or directory Expected results: rpm and rpmbuild should extract and patch the sources from the RPM ready for compilation. Additional info: None.
rpmbuild -r needs other configuration to be useful. unsupoorted, but feel free to play. yes, no hints. ;-)