| 1 | = Building RPM Packages = |
| 2 | The Bcfg2 distribution contains two different spec files. |
| 3 | |
| 4 | == Building from Tarball == |
| 5 | * Copy the tarball to `/usr/src/packages/SOURCES/` |
| 6 | * Extract another copy of it somewhere else (eg: `/tmp`) and retrieve the `misc/bcfg2.spec` file |
| 7 | * Run `rpmbuild -ba bcfg2.spec` |
| 8 | * The resulting RPMs will be in `/usr/src/packages/RPMS/` and SRPMs in `/usr/src/packages/SRPMS` |
| 9 | |
| 10 | == Building from an SVN Checkout == |
| 11 | * Enter the `redhat/` directory in the working copy |
| 12 | * Run `make` |
| 13 | * The resulting RPMs will be in `/usr/src/packages/RPMS/` and SRPMs in `/usr/src/packages/SRPMS` and will have the SVN revision appended |