wiki:BuildingRPMPackages

Version 3 (modified by fabaff, 12 years ago) (diff)

wget added

Building RPM Packages

The Bcfg2 distribution contains two different spec files.

Building from Tarball

  • Copy the tarball to /usr/src/packages/SOURCES/
  • Extract another copy of it somewhere else (eg: /tmp) and retrieve the misc/bcfg2.spec file
    wget http://trac.mcs.anl.gov/projects/bcfg2/browser/trunk/bcfg2/misc/bcfg2.spec
    
  • Run rpmbuild -ba bcfg2.spec
  • The resulting RPMs will be in /usr/src/packages/RPMS/ and SRPMs in /usr/src/packages/SRPMS

Building from an SVN Checkout

  • Enter the redhat/ directory in the working copy
  • Run make
  • The resulting RPMs will be in /usr/src/redhat/RPMS/ and SRPMs in /usr/src/redhat/SRPMS and will have the SVN revision appended