8.3. Creating an RPM Spec
- To generate an RPM Spec, include a template for the RPM as
mypackage.spec.inin 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.spectoAC_OUTPUT. - And add both
mypackage.specandmypackage.spec.into theEXTRA_DISTofMakefile.am. - Now, invoking
rpm -tbwith the archive name as a parameter would build an RPM out of it.