You build as a non-root user so that you don't accidentally overwrite the real files in the real locations on your system! If configured correctly rpmbuild builds the files in locations under ... [by TrevorH]
I'm trying to build my own rpm package and have a couple of doubts.
First of all, in several places I've red that one shouldn't build rpms as root. Why is that? During the building process, rpmbuild has to go through the install stage where it installs files to the system. As far as I understand I can't do that if I'm not root. rpmbuild prrocess finishes with error.
I am trying to compare two files (separted by a pipe) using 2 fields (field 1,3 from fileA and 1,2 from fileB) if the two files match i want the whole record of fileA adding the extra fields left from fileB.