Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #311 from r4um/rpm_sign

Fix #141 Add --rpm-sign option
  • Loading branch information...
commit 4a9265725ceb84cd44252d512e58b6ed0867a497 2 parents 738ddc5 + fd26714
@jordansissel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/fpm/package/rpm.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.