Mock & Koji

Mock is used to test that the BuildRequires for a package are complete and accurate, by creating a bare-bones chroot environment containing only the basic build packages plus any packages indicated by BuildRequires lines in the spec file.

yum install mock

Add user the mock group: usermod -aG mock jcqiu and logout/login.

go to the SRPM directory: cd /rpmbuild/SRPM

mock the rpm file: mock -r fedora-18-x86_64 units-1.88-6.fc17.src.rpm

Koji is a client-server system which allows you to queue builds within the Fedora build farm. This permits you to test whether your package builds on multiple different architectures, which is especially useful when you don’t otherwise have access to the machines of each architecture.

koji build f18 –scratch rpmbuild/SRPMS/units-1.88-6.fc17.src.rpm

arm-koji build f18 –scratch rpmbuild/SRPMS/units-1.88-6.fc17.src.rpm
s390-koji build f18 –scratch rpmbuild/SRPMS/units-1.88-6.fc17.src.rpm

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s