On Čet, 2007-09-27 at 13:23 +0200, Sylvester Lykkehus wrote:

> Igor Jagec wrote:
> > What is the easiest way I can (re)build rpm packages as normal user on
> > openSUSE 10.3?
> Rebuild or build ?

Both.

> Building is a science, in my opinion.

Yes, it indeed is :)

> As a normal user, you might want to add the --pakdir argument to point 
> to a path where this user have write permission, instead of the default 
> /usr/src/packages/RPMS

I didn't know for the --pakdir option, thanks. But I solved the problem.
I've run the rpmdev-setuptree srcipt from Fedora's rpmdev-tools package
(see the attach) and the script has created build directory and
~/.rpmmacros file. And here's how it looks like:

------------ begin ------------
%_topdir      %(echo $HOME)/rpmbuild
%_smp_mflags  -j3
#%
__arch_install_post   /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot
%_tmppath /home/igor/rpmbuild/tmp
%_buildroot /home/igor/rpmbuild
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
#%
__arch_install_post   /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot
--------- end ------------------

I've just commented out 2 lines and that was it.

Thanks for the answer anyway. Cheers!

-- 
Igor Jagec

Attachment: rpmdev-setuptree
Description: application/shellscript

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to