Wednesday, April 13, 2022

[SOLVED] rpm spec file - How to specify multiple package archtypes in the requires

Issue

What I have in spec Requires: lftp zsh boost db4 db4-devel

What I need in spec Requires: lftp zsh boost db4 db4-devel db4-cxx.i686 db4-devel.i686

But the x.i686 doesn't work. When I try to install the package with yum, it just says Error: Package: blah Requires: db4-devel.i686 db4-cxx.i686

Is there a way to install both x86_64 and i686 packages using the Requires: in the spec file?


Solution

Too late, but i'll just leave this here:

www.rpm.org/wiki/PackagerDocs/ArchDependencies  

So, should looks like:

Requires: db4-devel(x86-32) db4-cxx(x86-32)


Answered By - deman_killer
Answer Checked By - David Goodson (WPSolving Volunteer)