Changes between Version 14 and Version 15 of BuildingRPMPackages


Ignore:
Timestamp:
02/25/14 18:40:51 (9 years ago)
Author:
solj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingRPMPackages

    v14 v15  
    1 = Building RPM Packages = 
    2 The Bcfg2 distribution contains two different spec files.  
    3  
    4 == Building from a Release Tarball == 
    5  1. Be sure to check the [wiki:Prereqs Prerequisites] page. 
    6  1. Download the release tarball that you want to base your packages on from the [wiki:Download Downloads] page. 
    7  1. Run `rpmbuild -ta <name of tarball here>`. 
    8  1. On CentOS/RHEL, the resulting RPMs will be in `/usr/src/redhat/RPMS/noarch/` and the SRPMs in `/usr/src/redhat/SRPMS/`. 
    9  1. Example commands to build RPMs for bcfg2-1.1.1 on CentOS 5.5: 
    10    {{{ 
    11       $ yum install python-devel python-lxml rpm-build 
    12       ... 
    13       $ cd /tmp 
    14       $ wget ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-1.1.1.tar.gz 
    15       ... 
    16       $ rpmbuild -ta bcfg2-1.1.1.tar.gz 
    17       ... 
    18       $ ls /usr/src/redhat/RPMS/noarch/ 
    19       bcfg2-1.1.1-0.1.noarch.rpm  bcfg2-server-1.1.1-0.1.noarch.rpm 
    20    }}} 
    21  
    22 == Building from a git checkout == 
    23  * Enter the `redhat/` directory in the working copy 
    24  * Run `make` 
    25  * The resulting RPMs will be in `/usr/src/redhat/RPMS/`, SRPMs in `/usr/src/redhat/SRPMS`, and will have the VCS tag appended 
     1This page has moved to http://docs.bcfg2.org/installation/building-packages.html#building-rpms.