When I use rpmbuild I get, No such file or directory.
# rpmbuild -ba ./SPECS/myFoo.spec
error: File /root/rpmbuild/SOURCES/myFoo.tar.gz: No such file or directory
It seems to be reading from my home directory despite running the rpmbuild command from an entirely different user's home directory. However that doesn't change if I use --root (which is documented as "Use the file system tree rooted at DIRECTORY for all operations.")
# rpmbuild -ba ./SPECS/myFoo.spec --root /home/centos/myFoo/
error: File /root/rpmbuild/SOURCES/myFoo.tar.gz: No such file or directory
What' the solution to getting this to look in the right place.
rpmbuildas root?No such file or directorywhen I run it as non-root too.error: File /home/centos/rpmbuild/SOURCES/myFOO_rc1.tar.gz: No such file or directoryrpmbuildas root.rpmbuildis either needed or a potentially good idea.)