ipxe/ipxe — pull request #17 by schlomo (2013-12-18 16:10:45+00:00)
Title: Add ability to build an RPM

We deploy everything through RPM packages.

This adds a spec file template and the Makefile logic to create first a Source RPM and (optionally for testing) a Binary RPM. Typical use case looks like this:

$ make srpm RPM_OUTDIR=dist RPM_EXTRA_REV=.is24
... cut lots of make output ...
Wrote: dist/ipxe-4479-2bdd.is24.src.rpm

Then we build this Source RPM into a Binary RPM with our existing RPM build automation.

iPXE binaries are installed into `/usr/share/ipxe`, similar to how RHEL6 packages syslinux.

Since ipxe does not do binary releases the current version number (1.0.0) is pretty meaningless. The GITVERSION used in the Makefile is also not suitable as it is guaruanteed to be monotonous increasing.

To simplify things and to reflect the development model of iPXE i chose to use the amount of git commits in src/ as the "version" counter and the GITVERSION as "release" to assist in finding the exact git revision that the RPM was built from.