Help!

Source file that shouldn't be unpacked

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management RSS
Next:  RPM Package files location  
Author Message
Splinker
External


Since: Feb 23, 2007
Posts: 2



PostPosted: Fri Feb 23, 2007 2:53 pm    Post subject: Source file that shouldn't be unpacked
Archived from groups: linux>redhat>rpm (more info?)

I have a source file that doesn't require unpacking. Is there a way
to get %setup to just copy the file instead of it trying to unpack it?

Alternatively, is there a macro that I can use to get hold of the
source file?
Back to top
Splinker
External


Since: Feb 23, 2007
Posts: 2



PostPosted: Sat Feb 24, 2007 5:27 am    Post subject: Re: Source file that shouldn't be unpacked [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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. Smile
>
> > 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
Back to top
Michal Jaegermann
External


Since: Jun 06, 2004
Posts: 62



PostPosted: Sat Feb 24, 2007 6:32 am    Post subject: Re: Source file that shouldn't be unpacked [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Splinker <gbofspam 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. Smile

> 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
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum