Mailinglist Archive: opensuse-packaging (140 mails)

< Previous Next >
Re: [opensuse-packaging] How to create a dependency
On 13.01.2012 13:16, Mathias Homann wrote:

I'm banging my head against the wall here... how do i create a "alternate"
dependency in a spec file?

I need to create a i586 rpm that has a requirement to libgstapp but only the
32bit version.

or, in pseudoboolean:

Requires: libgstapp-0_10-0-32bit(x86-32) || libgstapp-0_10-0(x86-32)

how do i do that...

I can't point the Requires: line at absolute files, e.g.
/usr/lib/ because that would "force" the right
package/architecture but doesn't get resolved by zypper 0.o

You want to require, i.e. the SONAME. This is what
the automatic requires would add for binaries requiring the library.

Greetings, Stephan

To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups