setting up rhel 5.x RPM build server for mortal users

Posted by Chen Levy on Server Fault See other posts from Server Fault or by Chen Levy
Published on 2012-08-30T07:43:07Z Indexed on 2012/08/30 9:40 UTC
Read the original article Hit count: 361

Filed under:
|
|
|
|

My task is to setup a RHEL 5.x build host, that can build RPMs for mortal users.

On RHEL 6.x with rpm version 4.8, I have in /usr/lib/macros:

#       Path to top of build area.
%_topdir                %{getenv:HOME}/rpmbuild

On RHEL 5.x with rpm version 4.4, the %{getevn:HOME} is not available.

I know that I can use /home/someuser/.rpmmacros:

%_topdir                /home/someuser/rpmbuild

and this will work for that user, however I don't want to do this for every user separately. Moreover, since .rpmmacro will not expand ${HOME} or ~ I suspect it is unsafe to use those. This in turn make /etc/skel unstable for this task (or so I suspect).

So in short, my question is: How to setup RHEL 5.x host that allow all users to build RPM packages in their home directory?

© Server Fault or respective owner

Related posts about redhat

Related posts about rhel5