fpm 0.4.39 → 0.4.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELIST +13 -0
- data/lib/fpm/package/dir.rb +40 -7
- data/lib/fpm/package/python.rb +2 -2
- data/lib/fpm/version.rb +1 -1
- data/templates/rpm.erb +1 -1
- metadata +34 -60
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3e2f13a6e31f3f466459c62a7ef6882df437e8e1
|
4
|
+
data.tar.gz: 5807232e851343365819cf41fe5a02adaab8f3df
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 68f0d01498ad4de5d57f19075e4a2f2ffa8fbf4229ad1a73154fe0d4d2c3dbee35aa9fb2781a955ea5248dd931d7e3f6d415fef3ce8a959f6d77352a78881a15
|
7
|
+
data.tar.gz: 34d8cfc3d02113a40291a35e80250ff57f34f9e4b2a06c423e825620ebb21472837d91b49706830c3e4b0e468c06bfa895642b0ba34ddef09708c9e9811d57af
|
data/CHANGELIST
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
0.4.40 (July 12, 2013)
|
2
|
+
- dir: supports mapping one path to another.
|
3
|
+
You set mappings by using 'source=destination' syntax. For example:
|
4
|
+
% fpm -s dir -t deb -n example /home/jls/.zshrc=/etc/skel/
|
5
|
+
The key above is the '=' symbol. The result of the above will be a package
|
6
|
+
containing only /etc/skel/.zshrc
|
7
|
+
For more, see https://github.com/jordansissel/fpm/wiki/Source:-dir#mapping
|
8
|
+
- python: the default scripts location is now chosen by python itself. The
|
9
|
+
previous default was "/usr/bin" and was not a good default. (#480)
|
10
|
+
- rpm: config files should have attributes (#484, patch by adamcstephens)
|
11
|
+
- python: correctly log the python setup.py exit code (#481, patch by Derek
|
12
|
+
Ludwig)
|
13
|
+
|
1
14
|
0.4.39 (June 27, 2013)
|
2
15
|
- cpan: support more complex dependency specifications (reported by Mabi
|
3
16
|
Knittel)
|
data/lib/fpm/package/dir.rb
CHANGED
@@ -14,6 +14,15 @@ class FPM::Package::Dir < FPM::Package
|
|
14
14
|
|
15
15
|
# Add a new path to this package.
|
16
16
|
#
|
17
|
+
# A special handling of the path occurs if it includes a '=' symbol.
|
18
|
+
# You can say "source=destination" and it will copy files from that source
|
19
|
+
# to the given destination in the package.
|
20
|
+
#
|
21
|
+
# This lets you take a local directory and map it to the desired location at
|
22
|
+
# packaging time. Such as: "./src/redis-server=/usr/local/bin" will make
|
23
|
+
# the local file ./src/redis-server appear as /usr/local/bin/redis-server in
|
24
|
+
# your package.
|
25
|
+
#
|
17
26
|
# If the path is a directory, it is copied recursively. The behavior
|
18
27
|
# of the copying is modified by the :chdir and :prefix attributes.
|
19
28
|
#
|
@@ -27,14 +36,38 @@ class FPM::Package::Dir < FPM::Package
|
|
27
36
|
# package.attributes[:chdir] = "/etc"
|
28
37
|
# package.input("X11")
|
29
38
|
def input(path)
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
39
|
+
chdir = attributes[:chdir] || "."
|
40
|
+
|
41
|
+
# Support mapping source=dest
|
42
|
+
if path =~ /.=./
|
43
|
+
origin, destination = path.split("=", 2)
|
44
|
+
|
45
|
+
# file -> directory
|
46
|
+
# ./some/file=/usr/local should result in /usr/local/file
|
47
|
+
# directory -> directory
|
48
|
+
# ./some=/usr/local should result in /usr/local/...
|
49
|
+
# if ./some/file, then /usr/local/file
|
50
|
+
if File.directory?(origin)
|
51
|
+
chdir = origin
|
52
|
+
source = "."
|
35
53
|
else
|
36
|
-
|
54
|
+
chdir = File.dirname(origin)
|
55
|
+
source = File.basename(origin)
|
37
56
|
end
|
57
|
+
else
|
58
|
+
source, destination = path, "/"
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes[:prefix]
|
62
|
+
destination = File.join(attributes[:prefix], destination)
|
63
|
+
end
|
64
|
+
|
65
|
+
destination = File.join(staging_path, destination)
|
66
|
+
|
67
|
+
@logger["method"] = "input"
|
68
|
+
@logger.debug("Copying", :input => source, :output => destination)
|
69
|
+
::Dir.chdir(chdir) do
|
70
|
+
clone(source, destination)
|
38
71
|
end
|
39
72
|
|
40
73
|
# Set some defaults. This is useful because other package types
|
@@ -75,7 +108,7 @@ class FPM::Package::Dir < FPM::Package
|
|
75
108
|
# /tmp/example/hello/world
|
76
109
|
def clone(source, destination)
|
77
110
|
# Copy all files from 'path' into staging_path
|
78
|
-
|
111
|
+
#p :clone => { source => destination }
|
79
112
|
Find.find(source) do |path|
|
80
113
|
target = File.join(destination, path)
|
81
114
|
copy(path, target)
|
data/lib/fpm/package/python.rb
CHANGED
@@ -49,7 +49,7 @@ class FPM::Package::Python < FPM::Package
|
|
49
49
|
"be in lowercase?", :default => true
|
50
50
|
|
51
51
|
option "--install-bin", "BIN_PATH", "The path to where python scripts " \
|
52
|
-
"should be installed to."
|
52
|
+
"should be installed to."
|
53
53
|
option "--install-lib", "LIB_PATH", "The path to where python libs " \
|
54
54
|
"should be installed to (default depends on your python installation). " \
|
55
55
|
"Want to what your target platform is using? Run this: " \
|
@@ -163,7 +163,7 @@ class FPM::Package::Python < FPM::Package
|
|
163
163
|
output = %x{#{setup_cmd}}
|
164
164
|
if !$?.success?
|
165
165
|
@logger.error("setup.py get_metadata failed", :command => setup_cmd,
|
166
|
-
:exitcode => $?.
|
166
|
+
:exitcode => $?.exitstatus)
|
167
167
|
raise "An unexpected error occurred while processing the setup.py file"
|
168
168
|
end
|
169
169
|
output
|
data/lib/fpm/version.rb
CHANGED
data/templates/rpm.erb
CHANGED
@@ -145,7 +145,7 @@ cp <%= source_safe %> <%= target_safe %>
|
|
145
145
|
%defattr(<%= attributes[:rpm_defattrfile] %>,<%= attributes[:rpm_user] %>,<%= attributes[:rpm_group] %>,<%= attributes[:rpm_defattrdir] %>)
|
146
146
|
<%# Output config files and then regular files. -%>
|
147
147
|
<% config_files.each do |path| -%>
|
148
|
-
%config(noreplace) <%=
|
148
|
+
%config(noreplace) <%= rpm_file_entry(path) %>
|
149
149
|
<% end -%>
|
150
150
|
<%# list directories %>
|
151
151
|
<% directories.each do |path| -%>
|
metadata
CHANGED
@@ -1,68 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.40
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jordan Sissel
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: json
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.7.7
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.7.7
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: cabin
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 0.6.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.6.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: backports
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: 2.6.2
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: 2.6.2
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: arr-pm
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: ftw
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: clamp
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ~>
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ~>
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,97 +97,85 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: childprocess
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- -
|
101
|
+
- - '>='
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '0'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- -
|
108
|
+
- - '>='
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: '0'
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
112
|
+
name: rspec
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
|
-
- -
|
115
|
+
- - '>='
|
132
116
|
- !ruby/object:Gem::Version
|
133
117
|
version: '0'
|
134
118
|
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
|
-
- -
|
122
|
+
- - '>='
|
140
123
|
- !ruby/object:Gem::Version
|
141
124
|
version: '0'
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
126
|
+
name: insist
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
|
-
- -
|
129
|
+
- - ~>
|
148
130
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
131
|
+
version: 0.0.5
|
150
132
|
type: :development
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
|
-
- -
|
136
|
+
- - ~>
|
156
137
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
138
|
+
version: 0.0.5
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
140
|
+
name: minitest
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
|
-
- -
|
143
|
+
- - '>='
|
164
144
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0
|
145
|
+
version: '0'
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
|
-
- -
|
150
|
+
- - '>='
|
172
151
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0
|
152
|
+
version: '0'
|
174
153
|
- !ruby/object:Gem::Dependency
|
175
|
-
name:
|
154
|
+
name: pry
|
176
155
|
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
156
|
requirements:
|
179
|
-
- -
|
157
|
+
- - '>='
|
180
158
|
- !ruby/object:Gem::Version
|
181
159
|
version: '0'
|
182
160
|
type: :development
|
183
161
|
prerelease: false
|
184
162
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
163
|
requirements:
|
187
|
-
- -
|
164
|
+
- - '>='
|
188
165
|
- !ruby/object:Gem::Version
|
189
166
|
version: '0'
|
190
167
|
- !ruby/object:Gem::Dependency
|
191
|
-
name:
|
168
|
+
name: stud
|
192
169
|
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
170
|
requirements:
|
195
|
-
- -
|
171
|
+
- - '>='
|
196
172
|
- !ruby/object:Gem::Version
|
197
173
|
version: '0'
|
198
174
|
type: :development
|
199
175
|
prerelease: false
|
200
176
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
177
|
requirements:
|
203
|
-
- -
|
178
|
+
- - '>='
|
204
179
|
- !ruby/object:Gem::Version
|
205
180
|
version: '0'
|
206
181
|
description: Convert directories, rpms, python eggs, rubygems, and more to rpms, debs,
|
@@ -250,27 +225,26 @@ files:
|
|
250
225
|
- CHANGELIST
|
251
226
|
homepage: https://github.com/jordansissel/fpm
|
252
227
|
licenses: []
|
228
|
+
metadata: {}
|
253
229
|
post_install_message:
|
254
230
|
rdoc_options: []
|
255
231
|
require_paths:
|
256
232
|
- lib
|
257
233
|
- lib
|
258
234
|
required_ruby_version: !ruby/object:Gem::Requirement
|
259
|
-
none: false
|
260
235
|
requirements:
|
261
|
-
- -
|
236
|
+
- - '>='
|
262
237
|
- !ruby/object:Gem::Version
|
263
238
|
version: '0'
|
264
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
|
-
none: false
|
266
240
|
requirements:
|
267
|
-
- -
|
241
|
+
- - '>='
|
268
242
|
- !ruby/object:Gem::Version
|
269
243
|
version: '0'
|
270
244
|
requirements: []
|
271
245
|
rubyforge_project:
|
272
|
-
rubygems_version:
|
246
|
+
rubygems_version: 2.0.3
|
273
247
|
signing_key:
|
274
|
-
specification_version:
|
248
|
+
specification_version: 4
|
275
249
|
summary: fpm - package building and mangling
|
276
250
|
test_files: []
|