wiki:BuildingRPMPackages

Version 5 (modified by http://fab.id.fedoraproject.org/, 13 years ago) (diff)

Git instead of svn

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/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 git checkout

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