or condition at BuildRequires

Marten Lehmann lehmann at cnm.de
Thu Mar 5 19:29:46 UTC 2009


Hello,

> if your ORs are based on some kind of comparable metric you could wrap
> them.  ie:
> 
> %if %{BuildArch} == 'x86_64'
> BuildRequires: libx
> %else
> %if %{BuildArch} == 'i386'
> BuildRequires: liby
> %endif
> %endif

this looks good in general. How can I differentiate between RHEL 4 and 5?

Kind regards
Marten


More information about the Rpm-list mailing list