[Rpm-maint] OR'ed dependency check
alex.laban at gmail.com
Thu Feb 28 12:45:19 UTC 2008
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!
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.
> > 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...
More information about the Rpm-maint