*NEVER DO THIS*.
Always, always, always start your development as a normal user, not as root, and use a .rpmmacros that acts accordingly. For example, for user "nkadel", in "/home/nkadel/.rpmmcros", I have
%_topdir /home/nkadel/rpm
And I set up a subdirectories there as necessary.
Noted.
--------------------------------------------------------------- This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message. ---------------------------------------------------------------