Currently when building RPMs for many platforms, files are getting overwritten as no Distribution Tag is set, so the RPM file name does not contain distribution version like el6 or el7 which results in foobar-version.rpm file being build for all the distributions.
This change adds rpm_dist method to recipe file. This results in :rpm_dist attribute to be set in FPM::Package::RPM and the output RPM file will be named: foobar-version.el7.rpm, given el7 is being set as content of rpm_dist.
Currently when building RPMs for many platforms, files are getting overwritten as no Distribution Tag is set, so the RPM file name does not contain distribution version like
el6
orel7
which results infoobar-version.rpm
file being build for all the distributions.This change adds
rpm_dist
method to recipe file. This results in:rpm_dist
attribute to be set inFPM::Package::RPM
and the output RPM file will be named:foobar-version.el7.rpm
, givenel7
is being set as content ofrpm_dist
.