[Rpm-maint] OR'ed dependency check

Alex Lobanovsky alex.laban at gmail.com
Thu Feb 28 12:45:19 UTC 2008

Thank you!
The link to the manual is great!

I understood the idea of these "virtual provides". It works fine unless you
have no sources of the packages you would require.
Then I'm completely dependent on sanity and common sense of other developers
- if they add _common_ "provides" strings.

In my case, I need to
Requires: wine OR wine-core AND wine-ldap
Unfortunately, wine, wine-core and wine-ldap do no share same provide
strings (except for huge list of various .so's, but I don't think it's a
good idea to rely on list of libraries).

Thank you again for the support!

Kind regards,

2008/2/28, Panu Matilainen <pmatilai at redhat.com>:
> On Thu, 28 Feb 2008, Alex Lobanovsky wrote:
> > Hi ALL,
> >
> >
> > I'm desperate to find help anywhere else, so, I ask you here.
> > I need to OR dependency check in my rpm. In the header "Requires" entry.
> I
> > need to have something like this:
> >
> > Requires: foo && boo || moo && boo
> >
> > Is there any way to accomplish that?
> No. Rpm doesn't support OR dependencies. However similar effect can be
> achieved by using virtual provides. For the above example, you'd have
> something like "Provides: foo-moo" in both "foo" and "moo" packages, and
> then your "or dependency" would be "Requires: foo-moo", which would be
> satisfied by either "foo" or "moo" through the virtaul provide in them.
> > Are there good RPM manuals on the net more fresh that from 2002?
> http://docs.fedoraproject.org/drafts/rpm-guide-en/ is probably the most
> up-to-date and complete manual there is atm.
>         - Panu -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpm.org/pipermail/rpm-maint/attachments/20080228/4e5b4f41/attachment-0001.htm 

More information about the Rpm-maint mailing list