fpm 1.8.1 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rst +39 -0
- data/lib/fpm/command.rb +14 -0
- data/lib/fpm/package.rb +17 -1
- data/lib/fpm/package/apk.rb +1 -1
- data/lib/fpm/package/cpan.rb +26 -15
- data/lib/fpm/package/deb.rb +65 -24
- data/lib/fpm/package/dir.rb +8 -14
- data/lib/fpm/package/gem.rb +110 -2
- data/lib/fpm/package/pleaserun.rb +12 -2
- data/lib/fpm/package/python.rb +11 -0
- data/lib/fpm/package/rpm.rb +9 -0
- data/lib/fpm/package/tar.rb +1 -9
- data/lib/fpm/package/virtualenv.rb +28 -6
- data/lib/fpm/package/zip.rb +5 -21
- data/lib/fpm/util.rb +88 -18
- data/lib/fpm/version.rb +1 -1
- data/templates/deb/changelog.erb +1 -1
- data/templates/deb/postrm_upgrade.sh.erb +12 -5
- metadata +49 -62
data/lib/fpm/version.rb
CHANGED
data/templates/deb/changelog.erb
CHANGED
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
* Package created with FPM.
|
4
4
|
|
5
|
-
-- <%= maintainer %> <%= Time.now.strftime("%a, %d %b %Y %T %z") %>
|
5
|
+
-- <%= maintainer %> <%= (if attributes[:source_date_epoch].nil? then Time.now() else Time.at(attributes[:source_date_epoch].to_i) end).strftime("%a, %d %b %Y %T %z") %>
|
@@ -9,6 +9,16 @@ after_remove() {
|
|
9
9
|
<% end -%>
|
10
10
|
}
|
11
11
|
|
12
|
+
after_purge() {
|
13
|
+
<%# Making sure that at least one command is in the function -%>
|
14
|
+
<%# avoids a lot of potential errors, including the case that -%>
|
15
|
+
<%# the script is non-empty, but just whitespace and/or comments -%>
|
16
|
+
:
|
17
|
+
<% if script?(:after_purge) -%>
|
18
|
+
<%= script(:after_purge) %>
|
19
|
+
<% end -%>
|
20
|
+
}
|
21
|
+
|
12
22
|
dummy() {
|
13
23
|
:
|
14
24
|
}
|
@@ -25,11 +35,8 @@ elif [ "${1}" = "purge" -a -z "${2}" ]
|
|
25
35
|
then
|
26
36
|
# like "on remove", but executes after dpkg deletes config files
|
27
37
|
# 'apt-get purge' runs 'on remove' section, then this section.
|
28
|
-
#
|
29
|
-
|
30
|
-
# might perhaps be used here, but most people
|
31
|
-
# probably don't need it.
|
32
|
-
dummy
|
38
|
+
# There is no equivalent in RPM or ARCH.
|
39
|
+
after_purge
|
33
40
|
elif [ "${1}" = "upgrade" ]
|
34
41
|
then
|
35
42
|
# This represents the case where the old package's postrm is called after
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: json
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
@@ -19,9 +20,8 @@ dependencies:
|
|
19
20
|
- - "<"
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: '2.0'
|
22
|
-
name: json
|
23
|
-
prerelease: false
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
@@ -31,202 +31,190 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
+
name: cabin
|
34
35
|
requirement: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
37
|
- - ">="
|
37
38
|
- !ruby/object:Gem::Version
|
38
39
|
version: 0.6.0
|
39
|
-
name: cabin
|
40
|
-
prerelease: false
|
41
40
|
type: :runtime
|
41
|
+
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.6.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
+
name: backports
|
48
49
|
requirement: !ruby/object:Gem::Requirement
|
49
50
|
requirements:
|
50
51
|
- - ">="
|
51
52
|
- !ruby/object:Gem::Version
|
52
53
|
version: 2.6.2
|
53
|
-
name: backports
|
54
|
-
prerelease: false
|
55
54
|
type: :runtime
|
55
|
+
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 2.6.2
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
+
name: arr-pm
|
62
63
|
requirement: !ruby/object:Gem::Requirement
|
63
64
|
requirements:
|
64
65
|
- - "~>"
|
65
66
|
- !ruby/object:Gem::Version
|
66
67
|
version: 0.0.10
|
67
|
-
name: arr-pm
|
68
|
-
prerelease: false
|
69
68
|
type: :runtime
|
69
|
+
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 0.0.10
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
+
name: clamp
|
76
77
|
requirement: !ruby/object:Gem::Requirement
|
77
78
|
requirements:
|
78
79
|
- - "~>"
|
79
80
|
- !ruby/object:Gem::Version
|
80
81
|
version: 1.0.0
|
81
|
-
name: clamp
|
82
|
-
prerelease: false
|
83
82
|
type: :runtime
|
83
|
+
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: 1.0.0
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
+
name: childprocess
|
90
91
|
requirement: !ruby/object:Gem::Requirement
|
91
92
|
requirements:
|
92
93
|
- - ">="
|
93
94
|
- !ruby/object:Gem::Version
|
94
95
|
version: '0'
|
95
|
-
name: childprocess
|
96
|
-
prerelease: false
|
97
96
|
type: :runtime
|
97
|
+
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
+
name: ffi
|
104
105
|
requirement: !ruby/object:Gem::Requirement
|
105
106
|
requirements:
|
106
107
|
- - ">="
|
107
108
|
- !ruby/object:Gem::Version
|
108
109
|
version: '0'
|
109
|
-
name: ffi
|
110
|
-
prerelease: false
|
111
110
|
type: :runtime
|
111
|
+
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
+
name: rake
|
118
119
|
requirement: !ruby/object:Gem::Requirement
|
119
120
|
requirements:
|
120
121
|
- - "~>"
|
121
122
|
- !ruby/object:Gem::Version
|
122
123
|
version: '10'
|
123
|
-
name: rake
|
124
|
-
prerelease: false
|
125
124
|
type: :development
|
125
|
+
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '10'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
+
name: ruby-xz
|
132
133
|
requirement: !ruby/object:Gem::Requirement
|
133
134
|
requirements:
|
134
|
-
- -
|
135
|
+
- - ">="
|
135
136
|
- !ruby/object:Gem::Version
|
136
|
-
version: 0
|
137
|
-
name: archive-tar-minitar
|
138
|
-
prerelease: false
|
137
|
+
version: '0'
|
139
138
|
type: :runtime
|
139
|
+
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
|
-
- -
|
142
|
+
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: 0
|
144
|
+
version: '0'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
+
name: pleaserun
|
146
147
|
requirement: !ruby/object:Gem::Requirement
|
147
148
|
requirements:
|
148
|
-
- - "
|
149
|
+
- - "~>"
|
149
150
|
- !ruby/object:Gem::Version
|
150
|
-
version:
|
151
|
-
name: ruby-xz
|
152
|
-
prerelease: false
|
151
|
+
version: 0.0.29
|
153
152
|
type: :runtime
|
153
|
+
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: 0.0.29
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
|
+
name: stud
|
160
161
|
requirement: !ruby/object:Gem::Requirement
|
161
162
|
requirements:
|
162
|
-
- - "
|
163
|
+
- - ">="
|
163
164
|
- !ruby/object:Gem::Version
|
164
|
-
version: 0
|
165
|
-
name: pleaserun
|
166
|
-
prerelease: false
|
165
|
+
version: '0'
|
167
166
|
type: :runtime
|
167
|
+
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
|
-
- - "
|
170
|
+
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0
|
172
|
+
version: '0'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
|
+
name: rspec
|
174
175
|
requirement: !ruby/object:Gem::Requirement
|
175
176
|
requirements:
|
176
177
|
- - "~>"
|
177
178
|
- !ruby/object:Gem::Version
|
178
179
|
version: 3.0.0
|
179
|
-
name: rspec
|
180
|
-
prerelease: false
|
181
180
|
type: :development
|
181
|
+
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: 3.0.0
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
|
+
name: insist
|
188
189
|
requirement: !ruby/object:Gem::Requirement
|
189
190
|
requirements:
|
190
191
|
- - "~>"
|
191
192
|
- !ruby/object:Gem::Version
|
192
193
|
version: 1.0.0
|
193
|
-
name: insist
|
194
|
-
prerelease: false
|
195
194
|
type: :development
|
195
|
+
prerelease: false
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: 1.0.0
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
|
-
requirement: !ruby/object:Gem::Requirement
|
203
|
-
requirements:
|
204
|
-
- - ">="
|
205
|
-
- !ruby/object:Gem::Version
|
206
|
-
version: '0'
|
207
202
|
name: pry
|
208
|
-
prerelease: false
|
209
|
-
type: :development
|
210
|
-
version_requirements: !ruby/object:Gem::Requirement
|
211
|
-
requirements:
|
212
|
-
- - ">="
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
version: '0'
|
215
|
-
- !ruby/object:Gem::Dependency
|
216
203
|
requirement: !ruby/object:Gem::Requirement
|
217
204
|
requirements:
|
218
205
|
- - ">="
|
219
206
|
- !ruby/object:Gem::Version
|
220
207
|
version: '0'
|
221
|
-
name: stud
|
222
|
-
prerelease: false
|
223
208
|
type: :development
|
209
|
+
prerelease: false
|
224
210
|
version_requirements: !ruby/object:Gem::Requirement
|
225
211
|
requirements:
|
226
212
|
- - ">="
|
227
213
|
- !ruby/object:Gem::Version
|
228
214
|
version: '0'
|
229
|
-
description: Convert directories, rpms, python eggs, rubygems, and more to rpms, debs,
|
215
|
+
description: Convert directories, rpms, python eggs, rubygems, and more to rpms, debs,
|
216
|
+
solaris packages and more. Win at package management without wasting pointless hours
|
217
|
+
debugging bad rpm specs!
|
230
218
|
email: jls@semicomplete.com
|
231
219
|
executables:
|
232
220
|
- fpm
|
@@ -296,7 +284,7 @@ homepage: https://github.com/jordansissel/fpm
|
|
296
284
|
licenses:
|
297
285
|
- MIT-like
|
298
286
|
metadata: {}
|
299
|
-
post_install_message:
|
287
|
+
post_install_message:
|
300
288
|
rdoc_options: []
|
301
289
|
require_paths:
|
302
290
|
- lib
|
@@ -312,10 +300,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
300
|
- !ruby/object:Gem::Version
|
313
301
|
version: '0'
|
314
302
|
requirements: []
|
315
|
-
rubyforge_project:
|
316
|
-
rubygems_version: 2.
|
317
|
-
signing_key:
|
303
|
+
rubyforge_project:
|
304
|
+
rubygems_version: 2.6.11
|
305
|
+
signing_key:
|
318
306
|
specification_version: 4
|
319
307
|
summary: fpm - package building and mangling
|
320
308
|
test_files: []
|
321
|
-
has_rdoc:
|