On Thu, 2009-10-22 at 13:07 +0000, Mat Booth wrote: > 2009/10/22 Orcan Ogetbil <oget.fedora@xxxxxxxxx>: > > 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 Just a +1 for this as a general reference; I use it all the time. It's the first Google result for 'rpm setup macro', if you ever lose the bookmark. :) -- Adam Williamson Fedora QA Community Monkey IRC: adamw | Fedora Talk: adamwill AT fedoraproject DOT org http://www.happyassassin.net -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list