Mailinglist Archive: opensuse-packaging (140 mails)

< Previous Next >
Re: [opensuse-packaging] How to create a dependency
  • From: Mathias Homann <admin@xxxxxxxxxx>
  • Date: Fri, 13 Jan 2012 13:44:52 +0100
  • Message-id: <2665507.iUla1pzBqM@nb-20>
Am Freitag, 13. Januar 2012, 13:36:01 schrieb Stephan Kulow:
On 13.01.2012 13:16, Mathias Homann wrote:
Hi,

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/libgstapp-0.10.so.0 because that would "force" the right
package/architecture but doesn't get resolved by zypper 0.o

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


no, as that would pull in the X86_64 package if my package gets installed on a
64bit system... but my package is only available in 32bit and therefor
requires the 32bit libgstapp-0.10.so.0

any ideas?


bye,
MH

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

< Previous Next >