bernd / fpm-cookery

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

Add "package_name_format" field to recipe #215

Open bernd opened 2 years ago

bernd commented 2 years ago

Setting the field to a format string value changes the filename of the created package. If unset, FPM chooses its default format.

See the following code section for available format strings: https://github.com/jordansissel/fpm/blob/c40f6818f88a6dd3df7bc19b6007b03a716949f8/lib/fpm/package.rb#L355-L365

Fixes https://github.com/bernd/fpm-cookery/issues/210

Example recipe:

class FacterRubyGem < FPM::Cookery::RubyGemRecipe
  name    'facter'
  version '1.6.16'
  epoch 2

  package_name_format 'NAME_EPOCH:FULLVERSION_ARCH.EXTENSION'
end