Exclude Requires for some archs

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Tue Sep 11 09:26:16 UTC 2007


Michael Schwendt wrote, at 09/11/2007 06:12 PM +9:00:
> On Tue, 11 Sep 2007 11:00:40 +0200, Michael Schwendt wrote:
> 
>> On Tue, 11 Sep 2007 10:45:02 +0200, Till Maas wrote:
>>
>>> Hiyas,
>>>
>>> I want to use
>>> %ifnarch ppc ppc64
>>> Requires: vbetool
>>> %endif
>>> in a package, which should work according to maximum rpm[1] and was suggested 
>>> by Mamoru Tasaka. Nevertheless koji does not want to build[2] this for 
>>> ppc(64) because of a missing vbetool. Does someone spot the error in the 
>>> spec[3]?
>> ifnarch does not work with a set of archs (like ifarch does). Don't
>> read it like "if arch NOT in [ppc,ppc64]", but like "if arch NOT equal
>> to ppc" (a single value only!). So, in your spec, when the targetarch
>> is ppc, your %ifnarch holds true because ppc!=ppc64, and when the
>> targetarch is ppc64, it holds true because ppc64!=ppc.
> 
> Hmm, scratch that. I have the feeling I've mixed it up with something
> else. %ifnarch should really be "NOT %ifarch".
> 

Note: pm-utils dependency problem for vbetool commented here is actually
      not due to the usage of %ifnarch (bug 285361)

Regards,
Mamoru




More information about the fedora-devel-list mailing list