1,885
edits
Changes
→mock: Testing BuildRequires
It's often difficult to get the BuildRequires in a spec file exactly right, because it's easy to overlook packages that are coincidentally installed on the machine. <code>mock</code> is a tool that uses the chroot system call to create a "cleanroom" environment for the build, so that any missing BuildRequires cause the build to fail.
{{Admon/notecaution|The '''mock''' Group|To use mock, you will need to must first add yourself to the '''mock''' group: <code>usermod -G mock ''yourUserName''</code>}}
To build with mock: