or condition at BuildRequires

yersinia yersinia.spiros at gmail.com
Fri Mar 6 16:48:32 UTC 2009


On Thu, Mar 5, 2009 at 8:36 PM, <Greg_Swift at aotx.uscourts.gov> wrote:

> > > 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?
> >
>
> A fairly standard way from what I've seen would be like this:
>
> %if 0%{?rhel} == 5
> BuildRequires: libx
> %else
> %if 0%{?rhel} == 5
> BuildRequires: liby
> %endif
> %endif
>
>
> But when you build the rpm you will need to provide the %rhel macro.  I
> mention how this can be done in these 2 threads:
>
> http://lists.rpm.org/pipermail/rpm-list/2009-March/000182.html
> http://lists.rpm.org/pipermail/rpm-list/2009-March/000184.html
>
> -greg
>

Perhaps also this could be of interest
http://lists.rpm.org/pipermail/rpm-list/2009-March/000183.html

Regards

>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090306/798731a4/attachment.htm>


More information about the Rpm-list mailing list