Configuring export within a spec file

Chris Grau chris at
Mon Sep 12 22:12:51 UTC 2005

On Mon, Sep 12, 2005 at 11:08:35PM +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}

In %prep?  I don't this this is necessary.

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

The BUILD/<package> directory is always the current directory at the
beginning of a scriptlet.  Maybe you can just use ./lib/, etc?

> 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)
> Paul

More information about the fedora-extras-list mailing list