On Feb 24, 1:32 am, Michal Jaegermann <mic....RemoveThis@gortel.phys.ualberta.ca>
wrote:
> Splinker<gbofs....RemoveThis@gmail.com> wrote:
> > I have a source file that doesn't require unpacking.
>
> You can always pack it in an archive of an expected format.
> If this is the only source then this is likely the simplest
> solution.
>
> > Is there a way
> > to get %setup to just copy the file instead of it trying to unpack it?
>
> You can try to redefine %setup but I never bothered. If you already
> have a build directory and this is an extra source then, in spec:
>
> .....
> Source1: extra_source
> .....
> install -p -m <permissions> %{SOURCE1} <wherever>
> ....
> or any other means to deal with that.
>
>
>
> > Alternatively, is there a macro that I can use to get hold of the
> > source file?
>
> See above. '%{SOURCE1}' expands to a full path for 'extra_source'.
>
> Michal
Bingo! Does exactly what I need.
I'd tried all manner of macro trying to get at this, including the %
{SOURCE1}, but alas that was in the %prep phase, where they just don't
seem to be defined. Sigh...
Thanks