Configuring export within a spec file

Ignacio Vazquez-Abrams ivazquez at ivazquez.net
Mon Sep 12 23:01:09 UTC 2005


On Mon, 2005-09-12 at 23:08 +0100, Paul wrote:
> Hi,
> 
> I'm not sure how to do this, so I'll ask!
> 
> I have the following lines in my spec file
> 
> %prep
> %{__rm} -rf %{buildroot}
> %setup -q
> export Z80_OZFILES=%{_srcdir}/lib/
> export ZCCCFG=%{_srcdir}/lib/config
> export PATH=${PATH}:%{_srcdir}/bin
> 
> %{_srcdir} is not expanding to BUILD/z88dk-1.6

That's because it doesn't exist.

> What do I need to do to get _srcdir to expand correctly? I am, of
> course, assuming _srcdir is the correct name for BUILD/z88dk-1.6 - I've
> not set it up, but it follows the convention of _tmppath etc. (I have
> tried _srcpath and _srcname - neither work)

Try %{_builddir}/%{name}-%{version} instead.

-- 
Ignacio Vazquez-Abrams <ivazquez at ivazquez.net>
http://fedora.ivazquez.net/

gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20050912/77af645c/attachment.sig>


More information about the fedora-extras-list mailing list