Changes between Version 6 and Version 7 of BuildingRPMPackages
- Timestamp:
- 02/03/11 23:11:14 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingRPMPackages
v6 v7 2 2 The Bcfg2 distribution contains two different spec files. 3 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 4 == Building from a Release Tarball == 5 * Download the release tarball that you want to install from the [wiki:Downloads Downloads] page. 6 * Run `rpmbuild -ta <name of tarball here>`. 7 * On CentOS/RHEL, the resulting RPMs will be in `/usr/src/redhat/RPMS/noarch/` and SRPMs in `/usr/src/redhat/SRPMS/`. 8 * Example commands to build bcfg2-1.1.1 (on CentOS 5.5): 7 9 {{{ 8 wget http://trac.mcs.anl.gov/projects/bcfg2/browser/misc/bcfg2.spec 10 $ cd /tmp 11 $ wget ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-1.1.1.tar.gz 12 ... 13 $ rpmbuild -ta bcfg2-1.1.1.tar.gz 14 ... 15 $ ls /usr/src/redhat/RPMS/noarch/ 16 bcfg2-1.1.1-0.1.noarch.rpm bcfg2-server-1.1.1-0.1.noarch.rpm 9 17 }}} 10 11 * Run `rpmbuild -ba bcfg2.spec`12 * The resulting RPMs will be in `/usr/src/packages/RPMS/` and SRPMs in `/usr/src/packages/SRPMS`13 18 14 19 == Building from a git checkout ==