Packaging RPMsUsing Mock to Build Binary RPMs from Source RPMs- Install mock
sudo yum install mock - Edit /etc/group and add yourself to the mock group
mock:x:492:silas - Get the source RPM and put it in the current working directory
wget http://silassewell.googlecode.com/files/fabric-0.0.9-3.src.rpm - Create a results directory
mkdir results - Pick your platform and build the RPM using Mock
mock -r epel-5-i386 --resultdir=./results fabric-0.0.9-3.src.rpm
Hint: You can see the available build platforms by listing the contents of /etc/mock/.
|