fpm 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELIST +3 -0
  2. data/templates/rpm.erb +5 -0
  3. metadata +2 -2
data/CHANGELIST CHANGED
@@ -1,3 +1,6 @@
1
+ 0.4.6 (April 10, 2012)
2
+ - Work around more problems in RPM with respect to file listing (#202)
3
+
1
4
  0.4.5 (April 3, 2012)
2
5
  - Fix gem->rpm conversion where the '~>' rubygem version operator (#193,
3
6
  patch by antoncohen)
@@ -107,9 +107,14 @@ fi
107
107
  # with "/", then make sure paths with spaces are quoted. I hate rpm so much.
108
108
 
109
109
  # 'files' here is the method FPM::Package#files.
110
+ # The 'files' section of rpm can be
111
+ # Replace [ with [\[] to make rpm not use globs
112
+ # Replace * with [*] to make rpm not use globs
110
113
  files.collect { |f| "/#{f}" } \
111
114
  .reject { |f| config_files.include?(f) } \
112
115
  .collect { |f| f[/\s/] and "\"#{f}\"" or f } \
116
+ .collect { |f| f.gsub("[", "[\\[]") } \
117
+ .collect { |f| f.gsub("*", "[*]") } \
113
118
  .join("\n")
114
119
  %>
115
120
 
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.5
4
+ version: 0.4.6
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-04-04 00:00:00.000000000 Z
12
+ date: 2012-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json