rake-debian-build 1.0.9 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +1 -0
- data/Rakefile +1 -1
- data/lib/debian/build/distribution.rb +2 -2
- data/lib/debian/build/package.rb +7 -5
- data/rake-debian-build.gemspec +11 -15
- data/script/pbuilder +3 -0
- data/spec/debian/build/pbuilder_spec.rb +18 -0
- metadata +39 -24
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Generate all the Rake tasks
|
4
4
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
5
5
|
$hoe = Hoe.spec('rake-debian-build') do |p|
|
6
|
-
p.version = '1.0.
|
6
|
+
p.version = '1.0.11'
|
7
7
|
p.developer("Alban Peignier", "alban@tryphon.eu")
|
8
8
|
p.summary = "Rake tasks to build debian packages"
|
9
9
|
p.url = "http://projects.tryphon.eu/rake-debian-build"
|
@@ -24,7 +24,7 @@ module Debian::Build
|
|
24
24
|
|
25
25
|
def self.ubuntu_distributions
|
26
26
|
@@ubuntu_distributions ||=
|
27
|
-
%w{hardy jaunty karmic}.collect { |distribution| Distribution.new(:ubuntu, distribution) }
|
27
|
+
%w{hardy jaunty karmic lucid}.collect { |distribution| Distribution.new(:ubuntu, distribution) }
|
28
28
|
end
|
29
29
|
|
30
30
|
def source_result_directory
|
@@ -46,7 +46,7 @@ module Debian::Build
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def unstable?
|
49
|
-
[ :unstable, :
|
49
|
+
[ :unstable, :lucid ].include? distribution
|
50
50
|
end
|
51
51
|
|
52
52
|
@@local_names = { :stable => 'lenny', :testing => 'squeeze' }
|
data/lib/debian/build/package.rb
CHANGED
@@ -90,15 +90,17 @@ module Debian::Build
|
|
90
90
|
|
91
91
|
desc "Clean files created for #{package} #{version}"
|
92
92
|
task "clean" do
|
93
|
+
cleaned_files = []
|
94
|
+
|
93
95
|
Platform.each do |platform|
|
94
|
-
|
96
|
+
cleaned_files.push *package_files(platform.build_result_directory)
|
95
97
|
end
|
96
98
|
|
97
|
-
|
99
|
+
cleaned_files.push *package_source_files
|
100
|
+
cleaned_files.push "#{sources_directory}/#{orig_source_tarball_name}"
|
98
101
|
|
99
|
-
rm_f
|
100
|
-
|
101
|
-
rm_rf "#{source_directory}"
|
102
|
+
rm_f cleaned_files unless cleaned_files.empty?
|
103
|
+
rm_rf source_directory if File.directory?(source_directory)
|
102
104
|
end
|
103
105
|
end
|
104
106
|
end
|
data/rake-debian-build.gemspec
CHANGED
@@ -2,38 +2,34 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rake-debian-build}
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.11"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Alban Peignier"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-09-22}
|
10
10
|
s.description = %q{}
|
11
11
|
s.email = ["alban@tryphon.eu"]
|
12
|
-
s.
|
13
|
-
s.files = ["Manifest.txt", "README.rdoc", "Rakefile", "lib/debian/build.rb", "lib/debian/build/abstract_package.rb", "lib/debian/build/build_directory_methods.rb", "lib/debian/build/config.rb", "lib/debian/build/distribution.rb", "lib/debian/build/helper_methods.rb", "lib/debian/build/module_package.rb", "lib/debian/build/package.rb", "lib/debian/build/pbuilder.rb", "lib/debian/build/platform.rb", "lib/debian/build/source_providers.rb", "lib/debian/build/tasks.rb", "lib/debian/build/uploader.rb", "rake-debian-build.gemspec", "script/pbuilder", "spec/debian/build/source_providers_spec.rb", "spec/debian/build/uploader_spec.rb", "spec/spec_helper.rb", "tasks/packages.rake", "tasks/pbuilder.rake", "tasks/setup.rake"]
|
12
|
+
s.files = ["patching file Manifest.tmp"]
|
14
13
|
s.homepage = %q{http://projects.tryphon.eu/rake-debian-build}
|
15
14
|
s.rdoc_options = ["--main", "README.txt"]
|
16
15
|
s.require_paths = ["lib"]
|
17
16
|
s.rubyforge_project = %q{rake-debian-build}
|
18
|
-
s.rubygems_version = %q{1.3.
|
17
|
+
s.rubygems_version = %q{1.3.7}
|
19
18
|
s.summary = %q{Rake tasks to build debian packages}
|
20
19
|
|
21
20
|
if s.respond_to? :specification_version then
|
22
21
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
22
|
s.specification_version = 3
|
24
23
|
|
25
|
-
if Gem::Version.new(Gem::
|
26
|
-
s.add_development_dependency(%q<rubyforge>, [">= 2.0.
|
27
|
-
s.add_development_dependency(%q<
|
28
|
-
s.add_development_dependency(%q<hoe>, [">= 2.5.0"])
|
24
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
|
+
s.add_development_dependency(%q<rubyforge>, [">= 2.0.4"])
|
26
|
+
s.add_development_dependency(%q<hoe>, [">= 2.6.2"])
|
29
27
|
else
|
30
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.
|
31
|
-
s.add_dependency(%q<
|
32
|
-
s.add_dependency(%q<hoe>, [">= 2.5.0"])
|
28
|
+
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
29
|
+
s.add_dependency(%q<hoe>, [">= 2.6.2"])
|
33
30
|
end
|
34
31
|
else
|
35
|
-
s.add_dependency(%q<rubyforge>, [">= 2.0.
|
36
|
-
s.add_dependency(%q<
|
37
|
-
s.add_dependency(%q<hoe>, [">= 2.5.0"])
|
32
|
+
s.add_dependency(%q<rubyforge>, [">= 2.0.4"])
|
33
|
+
s.add_dependency(%q<hoe>, [">= 2.6.2"])
|
38
34
|
end
|
39
35
|
end
|
data/script/pbuilder
CHANGED
@@ -4,5 +4,8 @@ $: << File.expand_path(File.dirname(__FILE__) + '/../lib')
|
|
4
4
|
|
5
5
|
require 'debian/build'
|
6
6
|
|
7
|
+
Debian::Build::PBuilder.default_option "http-proxy", "http://localhost:9999"
|
8
|
+
|
7
9
|
platform = Debian::Build::Platform.find_by_name(ARGV.shift)
|
8
10
|
platform.pbuilder.exec :build, ARGV.shift
|
11
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '../../spec_helper')
|
2
|
+
|
3
|
+
describe PBuilder do
|
4
|
+
|
5
|
+
describe "default_option" do
|
6
|
+
|
7
|
+
after(:each) do
|
8
|
+
PBuilder.reset_default_options!
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should define option used by a new created instance" do
|
12
|
+
PBuilder.default_option :key, "value"
|
13
|
+
PBuilder.new.options.should include({:key, "value"})
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-debian-build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 1
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 11
|
10
|
+
version: 1.0.11
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Alban Peignier
|
@@ -9,39 +15,41 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-09-22 00:00:00 +02:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: rubyforge
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 0
|
33
|
+
- 4
|
34
|
+
version: 2.0.4
|
27
35
|
type: :development
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.0
|
34
|
-
version:
|
36
|
+
version_requirements: *id001
|
35
37
|
- !ruby/object:Gem::Dependency
|
36
38
|
name: hoe
|
37
|
-
|
38
|
-
|
39
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
40
42
|
requirements:
|
41
43
|
- - ">="
|
42
44
|
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
+
hash: 19
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 6
|
49
|
+
- 2
|
50
|
+
version: 2.6.2
|
51
|
+
type: :development
|
52
|
+
version_requirements: *id002
|
45
53
|
description: ""
|
46
54
|
email:
|
47
55
|
- alban@tryphon.eu
|
@@ -70,6 +78,7 @@ files:
|
|
70
78
|
- lib/debian/build/uploader.rb
|
71
79
|
- rake-debian-build.gemspec
|
72
80
|
- script/pbuilder
|
81
|
+
- spec/debian/build/pbuilder_spec.rb
|
73
82
|
- spec/debian/build/source_providers_spec.rb
|
74
83
|
- spec/debian/build/uploader_spec.rb
|
75
84
|
- spec/spec_helper.rb
|
@@ -87,21 +96,27 @@ rdoc_options:
|
|
87
96
|
require_paths:
|
88
97
|
- lib
|
89
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
90
100
|
requirements:
|
91
101
|
- - ">="
|
92
102
|
- !ruby/object:Gem::Version
|
103
|
+
hash: 3
|
104
|
+
segments:
|
105
|
+
- 0
|
93
106
|
version: "0"
|
94
|
-
version:
|
95
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
96
109
|
requirements:
|
97
110
|
- - ">="
|
98
111
|
- !ruby/object:Gem::Version
|
112
|
+
hash: 3
|
113
|
+
segments:
|
114
|
+
- 0
|
99
115
|
version: "0"
|
100
|
-
version:
|
101
116
|
requirements: []
|
102
117
|
|
103
118
|
rubyforge_project: rake-debian-build
|
104
|
-
rubygems_version: 1.3.
|
119
|
+
rubygems_version: 1.3.7
|
105
120
|
signing_key:
|
106
121
|
specification_version: 3
|
107
122
|
summary: Rake tasks to build debian packages
|