fpm 0.4.21 → 0.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,6 +62,9 @@ class FPM::Command < Clamp::Command
62
62
  @dependencies << val
63
63
  end # -d / --depends
64
64
 
65
+ option "--no-depends", :flag, "Do not list any dependencies in this package",
66
+ :default => false
67
+
65
68
  option "--provides", "PROVIDES",
66
69
  "What this package provides (usually a name). This flag can be "\
67
70
  "specified multiple times." do |val|
@@ -5,7 +5,7 @@ Vendor: <%= vendor %>
5
5
  Architecture: <%= architecture %>
6
6
  Maintainer: <%= maintainer %>
7
7
  Installed-Size: <%= attributes[:deb_installed_size] %>
8
- <% if !dependencies.empty? -%>
8
+ <% if !dependencies.empty? and !attributes[:no_depends?] -%>
9
9
  Depends: <%= dependencies.collect { |d| fix_dependency(d) }.flatten.join(", ") %>
10
10
  <% end -%>
11
11
  <% if !conflicts.empty? -%>
@@ -17,7 +17,7 @@ Conflicts: <%= conflicts.join(", ") %>
17
17
  <%# end -%>
18
18
  <% if !provides.empty? -%>
19
19
  <%# Turn each provides from 'foo = 123' to simply 'foo' because Debian :\ -%>
20
- <%# http://www.debian.org/doc/debian-policy/ch-relationships.html %>
20
+ <%# http://www.debian.org/doc/debian-policy/ch-relationships.html -%>
21
21
  Provides: <%= provides.first.split(" ").first %>
22
22
  <% end -%>
23
23
  <% if !replaces.empty? -%>
@@ -43,9 +43,11 @@ Vendor: <%= vendor %>
43
43
  URL: <%= url or "http://nourlgiven.example.com/" %>
44
44
  Packager: <%= maintainer %>
45
45
 
46
+ <% if !attributes[:no_depends?] -%>
46
47
  <% dependencies.each do |req| -%>
47
48
  Requires: <%= req %>
48
49
  <% end -%>
50
+ <% end -%>
49
51
  <% provides.each do |prov| -%>
50
52
  Provides: <%= prov %>
51
53
  <% end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.21
4
+ version: 0.4.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-09 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json