dpkg-tools 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== Version 0.3.5
|
2
|
+
|
3
|
+
2008-07-02: Quick major minor-bugfix
|
4
|
+
|
5
|
+
* Make the debian binary architecture handling for gems more intelligent: we now actually report the underlying system's build architecture instead of just i386. This allows native gems to be built on my amd64 system...
|
6
|
+
|
1
7
|
== Version 0.3.4
|
2
8
|
|
3
9
|
2008-06-25: Lots of bugfixing, some small refinements.
|
data/lib/dpkg-tools/version.rb
CHANGED
@@ -3,10 +3,10 @@ module DpkgTools #:nodoc:
|
|
3
3
|
unless defined? MAJOR
|
4
4
|
MAJOR = 0
|
5
5
|
MINOR = 3
|
6
|
-
TINY =
|
6
|
+
TINY = 5
|
7
7
|
RELEASE_CANDIDATE = nil
|
8
8
|
|
9
|
-
BUILD_TIME = "2008-
|
9
|
+
BUILD_TIME = "2008-07-02T16:00:03+01:00"
|
10
10
|
|
11
11
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
12
12
|
TAG = "REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_')
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
+
require 'stringio'
|
2
3
|
|
3
4
|
describe DpkgTools::Package::Data, "instances" do
|
4
5
|
before(:each) do
|
@@ -30,6 +31,13 @@ describe DpkgTools::Package::Data, "instances" do
|
|
30
31
|
@data.stubs(:debian_arch).returns('i386')
|
31
32
|
@data.architecture_independent?.should be_false
|
32
33
|
end
|
34
|
+
|
35
|
+
it "should be able to return the underlying build arch" do
|
36
|
+
io = StringIO.new("amd64\n")
|
37
|
+
IO.expects(:popen).with('dpkg-architecture -qDEB_BUILD_ARCH').returns(io)
|
38
|
+
|
39
|
+
@data.build_system_architecture.should == "amd64"
|
40
|
+
end
|
33
41
|
end
|
34
42
|
|
35
43
|
describe DpkgTools::Package::Data::YamlConfigHelpers do
|
@@ -143,9 +143,20 @@ describe DpkgTools::Package::Gem::Data, "instances" do
|
|
143
143
|
@data.debian_arch.should == "all"
|
144
144
|
end
|
145
145
|
|
146
|
-
|
147
|
-
|
148
|
-
|
146
|
+
describe "reporting debian archtecture when spec.extensions is not empty" do
|
147
|
+
before(:each) do
|
148
|
+
@spec.stubs(:extensions).returns(['extconf.rb'])
|
149
|
+
end
|
150
|
+
|
151
|
+
it "should report the debian architecture name as i386 when the underlying system is too" do
|
152
|
+
@data.stubs(:build_system_architecture).returns("i386")
|
153
|
+
@data.debian_arch.should == "i386"
|
154
|
+
end
|
155
|
+
|
156
|
+
it "should report the debian architecture name as amd64 when the underlying system is too" do
|
157
|
+
@data.stubs(:build_system_architecture).returns("amd64")
|
158
|
+
@data.debian_arch.should == "amd64"
|
159
|
+
end
|
149
160
|
end
|
150
161
|
|
151
162
|
it "should be able to generate a sensible list of deps" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpkg-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Patterson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-03 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -177,6 +177,6 @@ rubyforge_project: dpkg-tools
|
|
177
177
|
rubygems_version: 1.1.1
|
178
178
|
signing_key:
|
179
179
|
specification_version: 2
|
180
|
-
summary: dpkg-tools-0.3.
|
180
|
+
summary: dpkg-tools-0.3.5 (build 2008-07-02T16:00:03+01:00) - Painless OS package building http://dpkg-tools.rubyforge.org/
|
181
181
|
test_files: []
|
182
182
|
|