= Building RPM Packages = The Bcfg2 distribution contains two different spec files. == Building from a Release Tarball == 1. Be sure to check the [wiki:Prereqs Prerequisites] page. 1. Download the release tarball that you want to base your packages on from the [wiki:Download Downloads] page. 1. Run `rpmbuild -ta `. 1. On CentOS/RHEL, the resulting RPMs will be in `/usr/src/redhat/RPMS/noarch/` and the SRPMs in `/usr/src/redhat/SRPMS/`. 1. Example commands to build RPMs for bcfg2-1.1.1 on CentOS 5.5: {{{ $ yum install python-devel python-lxml rpm-build ... $ cd /tmp $ wget ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-1.1.1.tar.gz ... $ rpmbuild -ta bcfg2-1.1.1.tar.gz ... $ ls /usr/src/redhat/RPMS/noarch/ bcfg2-1.1.1-0.1.noarch.rpm bcfg2-server-1.1.1-0.1.noarch.rpm }}} == Building from a 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