On Tue, Jan 07, 2003, Stefan van der Eijk wrote: > I'm a linux user currently stuck on a Solaris machine at a customer. I'm > looking into using OpenPKG. I'd like to be able to build packages in my > homedirectory, like I do in Linux. Is it possible to use a ~/.rpmmacros > file like this: > > $ less ~/.rpmmacros > #%distribution Mandrake Linux > #%vendor MandrakeSoft > #%packager Stefan van der Eijk <[EMAIL PROTECTED]> > #%_gpg_name Stefan van der Eijk > #%_gpg_path ~/.gnupg > #%_signature gpg > #%_target linux > %_topdir /home/jgerstel/RPM > %_tmppath /home/jgerstel/tmp > > with OpenPKG I get: > > $ rpm --rebuild apache-1.3.27-20030103.src.rpm > Installing apache-1.3.27-20030103.src.rpm > error: cannot create sourcedir /appl/RPM/SRC/apache > Hello Stefan,
Let me just offer you my ~/.rpmmacros file which might do what you want:
----8<----8<----8<----8<----
# source areas
%_sourcedir %(echo $HOME)/openpkg/dst/%{name}
%_specdir %(echo $HOME)/openpkg/src/%{name}
# temporary areas
%_builddir %(echo $HOME)/tmp/opkgtmp
%_tmppath %(echo $HOME)/tmp/opkgtmp
# target areas
%_rpmdir %(echo $HOME)/openpkg/pkg/bin
%_srcrpmdir %(echo $HOME)/openpkg/pkg/src
----8<----8<----8<----8<----
I recommend that you use this sample file and try building a few packages.
Then inspect your new $HOME/openpkg and $HOME/tmp to see what gets put in
there. It should serve as a good example.
Regards,
Michael
--
[EMAIL PROTECTED]
Development Team, Application Services
Cable & Wireless Deutschland GmbH
msg00254/pgp00000.pgp
Description: PGP signature
