My favorites | Sign in
Logo
             
Search
for
Updated Dec 11, 2008 by si...@sewell.ch
PackagingRPMs  
Hints on packaging RPMs.

Packaging RPMs

Using Mock to Build Binary RPMs from Source RPMs

  1. Install mock
  2. sudo yum install mock
  3. Edit /etc/group and add yourself to the mock group
  4. mock:x:492:silas
  5. Get the source RPM and put it in the current working directory
  6. wget http://silassewell.googlecode.com/files/fabric-0.0.9-3.src.rpm
  7. Create a results directory
  8. mkdir results
  9. Pick your platform and build the RPM using Mock
  10. 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/.

Sign in to add a comment
Hosted by Google Code