Permalink
Browse files

Merge pull request #311 from r4um/rpm_sign

Fix #141 Add --rpm-sign option
  • Loading branch information...
2 parents 738ddc5 + fd26714 commit 4a9265725ceb84cd44252d512e58b6ed0867a497 @jordansissel committed Dec 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/fpm/package/rpm.rb
@@ -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.
@@ -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

0 comments on commit 4a92657

Please sign in to comment.