3.13. Building RPMs
RPMs are built with the rpmbuild
command. This command expects a certain directory and file structure, which is the same as the structure that was set up by the rpmdev-setuptree
utility.
Different use cases and desired outcomes require different combinations of arguments to the rpmbuild
command. The two main use cases are:
- Building source RPMs
Building binary RPM
- Rebuilding a binary RPM from a source RPM
- Building a binary RPM from the SPEC file
- Building a binary RPM from a source RPM
This following sections describe how to build an RPM after a SPEC file for a program has been created.