The following example illustrates the invocation of RPM to build a new, locally compiled, binutils binary RPM that matches the installed source RPM. This example assumes that all of the required source is installed.
rpm -U rtems-4.9-i386-rtems4.9-gdb-<VERSION>-<RPM_RELEASE>.src.rpm
cd <RPM_ROOT_DIRECTORY>/SPECS rpm -bb i386-rtems4.9-gdb-<VERSION>.spec
If the build completes successfully, RPMS like the following will be generated in a build-host architecture specific subdirectory of the RPMS directory under the RPM root directory.
rtems-4.9-gdb-common-<VERSION>-<RPM_RELEASE>.<ARCH>.rpm rtems-4.9-i386-rtems4.9-gdb-<VERSION>-<RPM_RELEASE>.<ARCH>.rpm
NOTE: It may be necessary to remove the build tree in the
BUILD
directory under the RPM root directory.
Copyright © 1988-2008 OAR Corporation