RPM Community Forums

Mailing List Message of <rpm-users>

RE: RPM 5.0.0 -- in place setup and building -- how ?

From: Stefan Westmeier <stefan_westmeier@hotmail.de>
Date: Fri 01 Feb 2008 - 16:15:06 CET
Message-ID: <BAY115-W10BFC53F02542FF4C8A5D598300@phx.gbl>

Thx !! Works :-)
 
One observation I made:
 
in my macros file (/home/user/SWDev/rpmmacros) I define:
 

%_builddir       %{wa_root}
 
rpmbuild --macros /opt/lib/rpm/macros:/home/user/SWDev/rpmmacros \
                 --define 'wa_root /home/user/SWDev' --eval '%{_builddir}
--> /home/user/SWDev
 
rpmbuild --define 'wa_root /home/user/SWDev' \
               --macros /opt/lib/rpm/macros:/home/user/SWDev/rpmmacros --eval '%{_builddir}
--> /opt/src/rpm/BUILD
 
Is this a bug or a feature ?
 
Thx again,
Stefan
> Date: Fri, 1 Feb 2008 14:55:41 +0100> From: rse+rpm-users@rpm5.org> To: rpm-users@rpm5.org> Subject: Re: RPM 5.0.0 -- in place setup and building -- how ?> > On Fri, Feb 01, 2008, Stefan Westmeier wrote:> > > Tried to combine --define and --macros and failed with using --define.> > Can I get an example of how to use --define ?> > | $ rpm --define 'foo bar' --eval '%{foo}'> | bar> > Ralf S. Engelschall> rse@engelschall.com> www.engelschall.com> > ______________________________________________________________________> RPM Package Manager http://rpm5.org> User Communication List rpm-users@rpm5.org
Received on Fri Feb 1 16:15:09 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.