Compiling an RPM from the Spec File

To set up your environment for compiling the RPM, the source file has to be located in /usr/src/packages/SOURCES. You need to use the rpmbuild program to take the spec file and compile the source based on the configuration you have specified. The -bb argument is used to specify that you want the build (b) and binary (b) package.

You can see in Listing 12-10 how the build process follows the spec file you have created, going through %prep, %setup, and %files to compile a binary RPM.

Was this article helpful?

0 0

Post a comment