Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ ⎇ branch:  cross package maker


Artifact [aa809c1f8a]

Artifact aa809c1f8acf90c8a78afc588d89111a68205191:

  • File examples/api/multiple-to-rpm.rb — part of check-in [aba2cc5d1e] at 2012-03-01 01:15:41 on branch trunk — Add api examples (user: jls@semicomplete.com size: 445)

$: << File.join(File.dirname(__FILE__), "..", "..", "lib")
require "fpm"

package = FPM::Package::Gem.new
ARGV.each do |gem|
  name, version = gem.split(/[=]/, 2)
  package.version = version  # Allow specifying a specific version
  package.input(gem)
end
rpm = package.convert(FPM::Package::RPM)
rpm.name = "rubygem-manythings"
rpm.version = "1.0"
begin
  output = "NAME-VERSION.ARCH.rpm"
  rpm.output(rpm.to_s(output))
ensure
  rpm.cleanup
end