Re: Naive question: boolean dependency

Vladimir Mihai Pacuraru <[email protected]> Thu, 21 Feb 2008 16:29:09 +0100
Newsgroups gmane.linux.redhat.rpm.general
Organization SolSoft S.A.
Message-ID <[email protected]>
 > From: Michael Jennings <mej kainx org>
 > To: rpm-list redhat com
 > Subject: Re: Naive question: boolean dependency
 > Date: Tue, 5 Feb 2008 20:49:12 -0800
 > On Tuesday, 05 February 2008, at 08:00:42 (+0100),
 > Tony Earnshaw wrote:
 >
 > >> It is  possible to express boolean dependencies in RPM?
 > >
 > > Yes. grep -ir for examples in /usr/lib/rpm.
 >
 > Please share some.  I would love to see them.

Same interest here!
 >
 > >> Requires: (pkg <=1.0.3) | (pkg>=1.9.3)
 > >
 > > The above hasn't anything to do with Boolean switches but is given
 > > with the Requires: and/or BuildRequires: definitions.
 >
 > Please illustrate.
 >
 > Michael

Again, I would like to do pretty much the same thing (say that a package 
requires either a version or another) and tried to adapt the above 
Requires: example but instead got this error:

error: line 17: Dependency tokens must begin with alpha-numeric, '_' or '/':

What exactly are the uses for the underscore and the / characters?

Thanks a lot!

Vlad