fpm 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fpm/builder.rb CHANGED
@@ -9,7 +9,7 @@ class FPM::Builder
9
9
  def output
10
10
  @output ||= begin
11
11
  o = @package.default_output
12
- if o.start_with? '/'
12
+ if o[0,1] == "/"
13
13
  o
14
14
  else
15
15
  File.join(@working_dir, o)
@@ -7,7 +7,7 @@ class FPM::Target::Rpm < FPM::Package
7
7
 
8
8
  def build!(params)
9
9
  raise "No package name given. Can't assemble package" if !@name
10
- Dir.mkdir("BUILD")
10
+ %w(BUILD RPMS SRPMS SOURCES SPECS).each { |d| Dir.mkdir(d) }
11
11
  args = ["rpmbuild", "-ba",
12
12
  "--define", "buildroot #{Dir.pwd}/BUILD",
13
13
  "--define", "_topdir #{Dir.pwd}",
@@ -16,7 +16,7 @@ class FPM::Target::Rpm < FPM::Package
16
16
  "#{name}.spec"]
17
17
  ret = system(*args)
18
18
  if !ret
19
- raise "rpmbuild failed"
19
+ raise "rpmbuild failed (exit code: #{$?.exitstatus})"
20
20
  end
21
21
 
22
22
  Dir["#{Dir.pwd}/RPMS/**/*.rpm"].each do |path|
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 5
10
- version: 0.2.5
5
+ version: 0.2.6
11
6
  platform: ruby
12
7
  authors:
13
8
  - Jordan Sissel
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-03-01 00:00:00 -08:00
13
+ date: 2011-03-07 00:00:00 -08:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,9 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
24
  version: "0"
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -72,23 +64,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
64
  requirements:
73
65
  - - ">="
74
66
  - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
67
  version: "0"
79
68
  required_rubygems_version: !ruby/object:Gem::Requirement
80
69
  none: false
81
70
  requirements:
82
71
  - - ">="
83
72
  - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
73
  version: "0"
88
74
  requirements: []
89
75
 
90
76
  rubyforge_project:
91
- rubygems_version: 1.5.0
77
+ rubygems_version: 1.6.0
92
78
  signing_key:
93
79
  specification_version: 3
94
80
  summary: fpm - package building and mangling