Re: rpm as non root user

Jos Vos <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
On Tue, Dec 18, 2007 at 01:08:57PM -0600, Adam Miller wrote:

>   I'm trying to allow a non root user build rpms and having a bit of 
> trouble.

This is all way too complex, you shouldn't use --root or define all
those variables, %_topdir is enough.  Just do (for example):

Put in ~/.rpmmacros (only):

%_topdir /home/testlscsoft/rpm

Then use the following commands:

mkdir -p /home/testlscsoft/rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
rpm -ivh lscsoft-user-env-1.12-1.src.rpm
cd /home/testlscsoft/rpm/SPECS
rpm -ba lscsoft-user-env.spec

-- 
--    Jos Vos <[email protected]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.