Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #311 from r4um/rpm_sign
Browse files Browse the repository at this point in the history
Fix #141 Add --rpm-sign option
  • Loading branch information
jordansissel committed Dec 8, 2012
2 parents ec0a3f2 + a2703b5 commit b410f85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fpm/package/rpm.rb
Expand Up @@ -75,6 +75,8 @@ class FPM::Package::RPM < FPM::Package
File.read(File.expand_path(file))
end

option "--sign", :flag, "Pass --sign to rpmbuild"

private

# Handle any architecture naming conversions.
Expand Down Expand Up @@ -206,6 +208,8 @@ def output(output_path)
rpm_target = "#{architecture}-unknown-#{attributes[:rpm_os]}"
args += ["--target", rpm_target]

args += ["--sign"] if attributes[:rpm_sign?]

(attributes[:rpm_rpmbuild_define] or []).each do |define|
args += ["--define", define]
end
Expand Down

0 comments on commit b410f85

Please sign in to comment.