[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: extracting multiple sources in %setup



2009/10/22 Orcan Ogetbil <oget fedora gmail com>:
> On Thu, Oct 22, 2009 at 3:46 AM, Marcus Moeller wrote:
>> Hi,
>>
>> is there a way to extract multiple sources in a spec files %setup section?
>>
>> Something like:
>>
>> for i in {1..10}; do tar xfz %(SOURCE$i}; done
>>
>> Best Regards
>> Marcus
>>
>
> %setup -q -c -n %{name} -a 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10
>
> should work. I don't if there's any nicer way.
>
> Orcan
>

It's also perfectly acceptable to call the %setup macro more than
once, if you need to.

There is some stuff in Max RPM about it:

http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html#S3-RPM-INSIDE-SETUP-MULTI-SOURCE

-- 
Mat Booth

A: Because it destroys the order of the conversation.
Q: Why shouldn't you do it?
A: Posting your reply above the original message.
Q: What is top-posting?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]