fpm 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELIST CHANGED
@@ -1,3 +1,6 @@
1
+ 0.4.14 (August 24, 2012)
2
+ - rpm: Replace newlines with space in any license setting. (#252)
3
+
1
4
  0.4.13 (August 14, 2012)
2
5
  - Make --exclude accept path prefixes as well. If you have a files in
3
6
  'usr/share/man' in your package, you can now exclude all of a subdir
data/lib/fpm/command.rb CHANGED
@@ -61,24 +61,29 @@ class FPM::Command < Clamp::Command
61
61
  @dependencies << val
62
62
  end # -d / --depends
63
63
  option "--provides", "PROVIDES",
64
- "What this package provides (usually a name)" do |val|
64
+ "What this package provides (usually a name). This flag can be "\
65
+ "specified multiple times." do |val|
65
66
  @provides ||= []
66
67
  @provides << val
67
68
  end # --provides
68
69
  option "--conflicts", "CONFLICTS",
69
- "Other packages/versions this package conflicts with" do |val|
70
+ "Other packages/versions this package conflicts with. This flag can " \
71
+ "specified multiple times." do |val|
70
72
  @conflicts ||= []
71
73
  @conflicts << val
72
74
  end # --conflicts
73
75
  option "--replaces", "REPLACES",
74
- "Other packages/versions this package replaces" do |val|
76
+ "Other packages/versions this package replaces. This flag can be "\
77
+ "specified multiple times." do |val|
75
78
  @replaces ||= []
76
79
  @replaces << val
77
80
  end # --replaces
78
81
  option "--config-files", "CONFIG_FILES",
79
82
  "Mark a file in the package as being a config file. This uses 'conffiles'" \
80
83
  " in debs and %config in rpm. You can specify a directory to have it " \
81
- "scanned marking all files found as config files" do |val|
84
+ "scanned marking all files found as config files. If you have multiple " \
85
+ "files to mark as configuration files, specify this flag multiple times." \
86
+ do |val|
82
87
  @config_files ||= []
83
88
  @config_files << val
84
89
  end # --config-files
Binary file
Binary file
data/templates/rpm.erb CHANGED
@@ -32,7 +32,11 @@ Prefix: <%= prefix %>
32
32
  <% end -%>
33
33
 
34
34
  Group: <%= category %>
35
- License: <%= license %>
35
+ <%# Sometimes the 'license' field has multiple lines... Hack around it.
36
+ # While technically yes this means we are 'modifying' the license,
37
+ # since the job of FPM is to get shit done and that this is only
38
+ # modifying whitespace, it should be reasonably OK. -%>
39
+ License: <%= license.gsub("\n", " ") %>
36
40
  <% if !vendor.nil? and !vendor.empty? -%>
37
41
  Vendor: <%= vendor %>
38
42
  <% 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.13
4
+ version: 0.4.14
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-08-14 00:00:00.000000000 Z
12
+ date: 2012-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -150,32 +150,32 @@ extensions: []
150
150
  extra_rdoc_files: []
151
151
  files:
152
152
  - lib/fpm/errors.rb
153
- - lib/fpm/util.rb
154
- - lib/fpm/command.rb
155
- - lib/fpm/package/pyfpm/get_metadata.py
156
- - lib/fpm/package/pyfpm/__init__.pyc
157
- - lib/fpm/package/pyfpm/get_metadata.pyc
158
- - lib/fpm/package/pyfpm/__init__.py
159
- - lib/fpm/package/python.rb
160
- - lib/fpm/package/rpm.rb
161
153
  - lib/fpm/package/npm.rb
162
- - lib/fpm/package/deb.rb
154
+ - lib/fpm/package/python.rb
155
+ - lib/fpm/package/solaris.rb
156
+ - lib/fpm/package/dir.rb
163
157
  - lib/fpm/package/gem.rb
164
- - lib/fpm/package/tar.rb
165
158
  - lib/fpm/package/pear.rb
166
- - lib/fpm/package/dir.rb
167
159
  - lib/fpm/package/puppet.rb
168
- - lib/fpm/package/solaris.rb
160
+ - lib/fpm/package/pyfpm/__init__.py
161
+ - lib/fpm/package/pyfpm/__init__.pyc
162
+ - lib/fpm/package/pyfpm/get_metadata.pyc
163
+ - lib/fpm/package/pyfpm/get_metadata.py
164
+ - lib/fpm/package/tar.rb
165
+ - lib/fpm/package/deb.rb
166
+ - lib/fpm/package/rpm.rb
167
+ - lib/fpm/util.rb
169
168
  - lib/fpm/package.rb
170
169
  - lib/fpm/namespace.rb
170
+ - lib/fpm/command.rb
171
171
  - lib/fpm.rb
172
- - bin/fpm-npm
173
172
  - bin/fpm
174
- - templates/puppet/package/remove.pp.erb
175
- - templates/puppet/package.pp.erb
173
+ - bin/fpm-npm
176
174
  - templates/deb.erb
177
- - templates/solaris.erb
178
175
  - templates/rpm.erb
176
+ - templates/solaris.erb
177
+ - templates/puppet/package/remove.pp.erb
178
+ - templates/puppet/package.pp.erb
179
179
  - LICENSE
180
180
  - CONTRIBUTORS
181
181
  - CHANGELIST
@@ -205,4 +205,3 @@ signing_key:
205
205
  specification_version: 3
206
206
  summary: fpm - package building and mangling
207
207
  test_files: []
208
- has_rdoc: