Permalink
Browse files

Add --rpm-sign option

  • Loading branch information...
1 parent 2d8c7f2 commit fd267143043e3fac4834798dd1cd1eb934c47232 @r4um r4um committed Dec 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/fpm/package/rpm.rb
View
@@ -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 fd26714

Please sign in to comment.