Configuring export within a spec file

Paul paul at
Mon Sep 12 22:08:35 UTC 2005


I'm not sure how to do this, so I'll ask!

I have the following lines in my spec file

%{__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

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)


"A lot of football success is in the mind. You must believe you are the
best and then make sure that you are. In my time at Liverpool we always
said we had the best two teams on Merseyside, Liverpool and Liverpool
Reserves." - Bill Shankly
-------------- 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: <>

More information about the fedora-extras-list mailing list