Ask Your Question
1

Compile multilib packages with mock/rpmbuild?

asked 2012-01-25 15:49:32 -0500

Xiao-Long Chen gravatar image

I've been trying to compile a multilib package on the x86_64 architecture, but I can't seem to find any documentation on it.

My spec file has a structure like this

  • package
    • libpackage
    • libpackage-devel
    • package-(something)

I'm trying to make it so that the following RPM's are generated on x86_64 (like in the official Fedora repositories):

package-1.0-1.fc16.x86_64.rpm
libpackage-1.0-1.fc16.x86_64.rpm
libpackage-1.0-1.fc16.i686.rpm
libpackage-devel-1.0-1.fc16.x86_64.rpm
libpackage-devel-1.0-1.fc16.i686.rpm
package-(something)-1.0-1.fc16.x86_64.rpm

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-01-25 16:21:57 -0500

mooninite gravatar image

You have to run two mock jobs. One job per each arch.

i686: mock --arch=i686 package.src.rpm

x86_64: mock package.src.rpm

The --arch option defaults to the arch of the machine you run mock on.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-25 15:49:32 -0500

Seen: 979 times

Last updated: Jan 25 '12