wiki:BuildingRPMPackages

Version 1 (modified by kisielk, 14 years ago) (diff)

Added instructions for building RPM packages

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
  • 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/packages/RPMS/ and SRPMs in /usr/src/packages/SRPMS and will have the SVN revision appended