Hello, this is my first try at building rpms. All the documentation out there states to build rpms as a regular user and not root. Now I know why they suggest that, however I'm running into a problem because I need to run the user/groupadd commands during the rpm build process and therefore my rpm build is failing, because I don't have root access. So, apart from running the rpm build as root is there any other way (through the spec file?) to get around this? Thanks.
Chapter four on http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-fedora-12-x86_64 should give you the idea. Please run Code: visudo and add your regular user.
You should not be making changes to the system during the rpm build process, the changes should be made during installation of the rpm.