bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

Add rpm_dist method. #190

Closed sfzylad closed 7 years ago

sfzylad commented 7 years ago

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.

sfzylad commented 7 years ago

Thanks for merging!

When do you think it'll be available from rubygems.org?