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 +1 -1
- data/lib/fpm/target/rpm.rb +2 -2
- metadata +3 -17
data/lib/fpm/builder.rb
CHANGED
data/lib/fpm/target/rpm.rb
CHANGED
@@ -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(
|
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
|
-
|
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-
|
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.
|
77
|
+
rubygems_version: 1.6.0
|
92
78
|
signing_key:
|
93
79
|
specification_version: 3
|
94
80
|
summary: fpm - package building and mangling
|