8.3. Creating an RPM Spec
- To generate an RPM Spec, include a template for the RPM as
mypackage.spec.in
in the main directory of the package. - The template is identical to the spec except that the
Version:
field should contain@VERSION@
as its contents. - Add
mypackage.spec
toAC_OUTPUT
. - And add both
mypackage.spec
andmypackage.spec.in
to theEXTRA_DIST
ofMakefile.am
. - Now, invoking
rpm -tb
with the archive name as a parameter would build an RPM out of it.