fpm 0.4.17 → 0.4.18
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELIST +6 -0
- data/lib/fpm/command.rb +9 -0
- data/lib/fpm/package/rpm.rb +5 -0
- metadata +2 -2
data/CHANGELIST
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
0.4.18 (September 25, 2012)
|
2
|
+
- Fix regression in rpm building where the epoch in was missing in the rpm,
|
3
|
+
but prior fpm versions defaulted it to 1. This caused rpms built with newer
|
4
|
+
fpms to appear "older" than older rpms. Tests added to ensure this regression
|
5
|
+
is caught prior to future releases! (Reported by eliklein)
|
6
|
+
|
1
7
|
0.4.17 (September 12, 2012)
|
2
8
|
- Remove accidental JSON warning when using '-s python'
|
3
9
|
|
data/lib/fpm/command.rb
CHANGED
@@ -4,6 +4,7 @@ require "fpm/util"
|
|
4
4
|
require "clamp"
|
5
5
|
require "ostruct"
|
6
6
|
require "fpm"
|
7
|
+
require "tmpdir" # for Dir.tmpdir
|
7
8
|
|
8
9
|
if $DEBUG
|
9
10
|
Cabin::Channel.get(Kernel).subscribe($stdout)
|
@@ -170,6 +171,11 @@ class FPM::Command < Clamp::Command
|
|
170
171
|
@template_values << kv.split("=", 2)
|
171
172
|
end
|
172
173
|
|
174
|
+
option "--workdir", "WORKDIR",
|
175
|
+
"The directory you want fpm to do its work in, where 'work' is any file" \
|
176
|
+
"copying, downloading, etc. Roughly any scratch space fpm needs to build" \
|
177
|
+
"your package.", :default => Dir.tmpdir
|
178
|
+
|
173
179
|
parameter "[ARGS] ...",
|
174
180
|
"Inputs to the source package type. For the 'dir' type, this is the files" \
|
175
181
|
" and directories you want to include in the package. For others, like " \
|
@@ -221,6 +227,9 @@ class FPM::Command < Clamp::Command
|
|
221
227
|
args << "."
|
222
228
|
end
|
223
229
|
|
230
|
+
@logger.info("Setting workdir", :workdir => workdir)
|
231
|
+
ENV["TMP"] = workdir
|
232
|
+
|
224
233
|
validator = Validator.new(self)
|
225
234
|
if !validator.ok?
|
226
235
|
validator.messages.each do |message|
|
data/lib/fpm/package/rpm.rb
CHANGED
@@ -214,6 +214,11 @@ class FPM::Package::RPM < FPM::Package
|
|
214
214
|
#return File.join("BUILD", prefix)
|
215
215
|
end # def prefix
|
216
216
|
|
217
|
+
# The default epoch value must be 1 (backward compatibility for rpms built
|
218
|
+
# with fpm 0.4.3 and older)
|
219
|
+
def epoch
|
220
|
+
return @epoch || "1"
|
221
|
+
end # def epoch
|
217
222
|
|
218
223
|
def to_s(format=nil)
|
219
224
|
return super("NAME-VERSION-ITERATION.ARCH.TYPE") if format.nil?
|
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.
|
4
|
+
version: 0.4.18
|
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-09-
|
12
|
+
date: 2012-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|