Development:RPM
From ProjectDiaStar
Contents |
Configuring your system to build RPM's
The following provides instructions on installing the RPM build tools on your system.
Install the RPM build tools
Fedora
# yum install rpmdevtools
CentOS 5.x
The following steps have been tested on CentOS 5.3.
# yum install gcc-c++ redhat-rpm-config rpm-build # wget http://download.fedora.redhat.com/pub/epel/5/i386/rpmdevtools-5.3-2.el5.noarch.rpm # rpm -i rpmdevtools-5.3-1.el5.noarch.rpm
Create a build user
# useradd build -m -password build
Create the RPM directory structure
Now we create the RPM build directory structure under or build user account.
# su - build
CentOS 5.x and Fedora 7 and earlier
$ fedora-buildrpmtree
Fedora 8
$ rpmdev-setuptree
This creates the following directories.
rpmbuild
->BUILD
->RPMS
->SOURCES
->SPECS
->SRPMS
