My favorites | Sign in
Project Home Downloads Wiki Source
Search
for
PackagingRPMs  
Hints on packaging RPMs.
Updated Aug 11, 2009 by si...@sewell.ch

Packaging RPMs

Using Mock to Build Binary RPMs from Source RPMs

  1. Install mock
  2. sudo yum install rpmdevtools mock createrepo
  3. Add yourself to the mock group
  4. sudo /usr/sbin/usermod --groups mock --append $USER
  5. Setup your development tree
  6. rpmdev-setuptree
  7. Change the current working directory to the development tree
  8. cd ~/rpmbuild
  9. Put the source RPM into SRPM directory
  10. pushd SRPM
    wget http://silassewell.googlecode.com/files/fabric-0.0.9-3.src.rpm
    popd
  11. List available build targets
  12. ls -1 /etc/mock/*.cfg | cut -d'/' -f4 | cut -d'.' -f1
  13. Pick one and build
  14. mock -vr fedora-rawhide-i386 SRPM/fabric-0.0.9-3.src.rpm
  15. Get results
  16. cp /var/lib/mock/fedora-rawhide-i386/result/*.rpm RPM

Sign in to add a comment
Powered by Google Project Hosting