next up previous contents
Next: TGZ Up: Building a RPM package Previous: %files   Contents

Building the package

rpmbuild is the tool used to build RPMs:

  rpmbuild -ba set-difference.spec

rpmbuild will parse the spec file (as we have seen), build the metadata header, build and install the program and finally build the archive.

In our case (-ba ), a binary and a source RPM are created. We can list the content of the binary to check it matches the %files section.

Figure 18: RPMs created.
Image RPM-content

Installation (under /usr/local/bin ) is successful.

Figure 19: Installation of the RPM.
Image RPM-install



Pierre Alexandre Meyer 2007-12-12