Sha256: 00a8eb594165bf17d8f09b3053ee955366cc618b4541c6743a33d496be065638
Contents?: true
Size: 707 Bytes
Versions: 36
Compression:
Stored size: 707 Bytes
Contents
require 'fpm' class Dockly::Rpm < Dockly::Deb logger_prefix '[dockly rpm]' dsl_attribute :os default_value :deb_build_dir, 'rpm' default_value :os, 'linux' def output_filename "#{package_name}_#{version}.#{release}_#{arch}.rpm" end private def convert_package debug "converting to rpm" @deb_package = @dir_package.convert(FPM::Package::RPM) # rpm specific configs @deb_package.attributes[:rpm_rpmbuild_define] ||= [] @deb_package.attributes[:rpm_defattrfile] = "-" @deb_package.attributes[:rpm_defattrdir] = "-" @deb_package.attributes[:rpm_user] = "root" @deb_package.attributes[:rpm_group] = "root" @deb_package.attributes[:rpm_os] = os end end
Version data entries
36 entries across 36 versions & 1 rubygems