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

Version Path
dockly-3.0.4 lib/dockly/rpm.rb
dockly-3.0.3 lib/dockly/rpm.rb
dockly-3.0.2 lib/dockly/rpm.rb
dockly-3.0.1 lib/dockly/rpm.rb
dockly-3.0.0 lib/dockly/rpm.rb
dockly-2.7.2 lib/dockly/rpm.rb
dockly-2.7.1 lib/dockly/rpm.rb
dockly-2.7.0 lib/dockly/rpm.rb
dockly-1.13.0 lib/dockly/rpm.rb
dockly-2.6.0 lib/dockly/rpm.rb
dockly-1.12.3 lib/dockly/rpm.rb
dockly-2.5.3 lib/dockly/rpm.rb
dockly-1.12.2 lib/dockly/rpm.rb
dockly-2.5.2 lib/dockly/rpm.rb
dockly-1.12.1 lib/dockly/rpm.rb
dockly-2.5.1 lib/dockly/rpm.rb
dockly-1.12.0 lib/dockly/rpm.rb
dockly-2.5.0 lib/dockly/rpm.rb
dockly-1.11.0 lib/dockly/rpm.rb
dockly-2.4.0 lib/dockly/rpm.rb