Mailinglist Archive: opensuse-packaging (140 mails)

< Previous Next >
Re: [opensuse-packaging] How to create a dependency
On Friday, January 13, 2012 01:44:52 PM Mathias Homann wrote:
Am Freitag, 13. Januar 2012, 13:36:01 schrieb Stephan Kulow:
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.

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

any ideas?

If your package is 32-bit only, why do you build a 64-bit version at all? No
need for that - you can install the i386.rpm without problems on an x86-64

Add ExclusiveArch: %ix86 to it

Andreas Jaeger aj@{,} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >