On 03/02/2012 02:14 PM, andrey.lisin@gmail.com wrote:
Hi folks,
There are two different tarballs for i386 and x86_64 arch exist for the applicaion I want to make RPM package from.
I feel, I need some hints to understand how such situation should be handled. My guess, I need to specify two Source attributes and then choose suitable one, using %ifarch macro. But it's not clear how such macro as %setup will know what exactly archive to be used? Should I do this step manually?
I'll be grateful for any advices.
Please start a new thread with a new message - and not as a reply to another one. People might not notice the change of subject. You should be able to do somethink like: Source0: source-i386 Source1: source-x86-64 %ifarch x86 %setup -n somedir -a 0 %endif %ifarch x86-64 %setup -n somedir -a 1 %endif Or setup both at the same time - if they unpack in different directories and decide at build/install time where to cd. Andreas -- Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg) GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org