wiki:BuildingRPMPackages

Version 2 (modified by strauss, 11 years ago) (diff)

Fix RPM paths for CentOS/RHEL

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