Red Hat Bugzilla – Bug 115151
rpmbuild -r $wrk -bp some.spec
Last modified: 2007-11-30 17:10:36 EST
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
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
2. rpm -i --root=$wrk $SRPMS/doxygen-1.3.4-1.src.rpm
3. rpmbuild -r $wrk -bp $specdir/doxygen.spec
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
rpm and rpmbuild should extract and patch the sources from the RPM
ready for compilation.
rpmbuild -r needs other configuration to be useful.
unsupoorted, but feel free to play. yes, no hints. ;-)