Re: or condition at BuildRequires

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >> how can I define an or-condition at a BuildRequires line like
> >>
> >> BuildRequires: (libx or liby)
> >
> > You can't. You can add the same virtual provides to both libx and liby.
>
> I'm not maintaining the packages and I would like to avoid changing the
> spec files on each platform.

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


-greg

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux