[DRE-commits] [SCM] ruby-actionpack-2.3.git branch, debian-sid, updated. debian/2.3.11-1-3-g05363a7

Ondřej Surý ondrej at sury.org
Fri Jun 3 12:41:05 UTC 2011


The following commit has been merged in the debian-sid branch:
commit 6a83fdfb57cca7449e62614bc00c7363c94c1ac4
Author: Ondřej Surý <ondrej at sury.org>
Date:   Fri Jun 3 14:09:45 2011 +0200

    Use RAILS_VERSION from metadata.yml to generate dependencies

diff --git a/debian/control b/debian/control
index 324d50e..72242db 100644
--- a/debian/control
+++ b/debian/control
@@ -6,8 +6,10 @@ Uploaders: Ondřej Surý <ondrej at debian.org>
 DM-Upload-Allowed: yes
 Build-Depends: debhelper (>= 7.0.50~),
 	       gem2deb (>= 0.2.3~),
-	       ruby-activesupport-2.3,
-	       ruby-activerecord-2.3,
+	       ruby-activesupport-2.3 (>= 2.3.11),
+	       ruby-activesupport-2.3 (<< 2.3.11.1),
+	       ruby-activerecord-2.3 (>= 2.3.11),
+	       ruby-activerecord-2.3 (<< 2.3.11.1),
 	       ruby-rack (>= 1.1.0~) | librack-ruby (>= 1.1.0~)
 Standards-Version: 3.9.2
 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-actionpack-2.3.git
@@ -21,8 +23,10 @@ XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends},
 	 ${misc:Depends},
 	 ruby | ruby-interpreter,
-	 ruby-activesupport-2.3 (>= ${source:Version}~),
-	 ruby-activesupport-2.3 (<< ${source:Version}.1~),
+	 ruby-activesupport-2.3 (>= 2.3.11),
+	 ruby-activesupport-2.3 (<< 2.3.11.1),
+	 ruby-activerecord-2.3 (>= 2.3.11),
+	 ruby-activerecord-2.3 (<< 2.3.11.1),
 	 ruby-rack (>= 1.1.0~) | librack-ruby (>= 1.1.0~)
 Conflicts: libactionpack-ruby (<< 2.3.11-1~), libactionpack-ruby1.8 (<< 2.3.11-1~)
 Replaces: libactionpack-ruby (<< 2.3.11-1~), libactionpack-ruby1.8 (<< 2.3.11-1~)
diff --git a/debian/control b/debian/control.in
similarity index 80%
copy from debian/control
copy to debian/control.in
index 324d50e..bd8edfd 100644
--- a/debian/control
+++ b/debian/control.in
@@ -6,8 +6,10 @@ Uploaders: Ondřej Surý <ondrej at debian.org>
 DM-Upload-Allowed: yes
 Build-Depends: debhelper (>= 7.0.50~),
 	       gem2deb (>= 0.2.3~),
-	       ruby-activesupport-2.3,
-	       ruby-activerecord-2.3,
+	       ruby-activesupport-2.3 (>= @RAILS_VERSION@),
+	       ruby-activesupport-2.3 (<< @RAILS_VERSION at .1),
+	       ruby-activerecord-2.3 (>= @RAILS_VERSION@),
+	       ruby-activerecord-2.3 (<< @RAILS_VERSION at .1),
 	       ruby-rack (>= 1.1.0~) | librack-ruby (>= 1.1.0~)
 Standards-Version: 3.9.2
 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-actionpack-2.3.git
@@ -21,8 +23,10 @@ XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends},
 	 ${misc:Depends},
 	 ruby | ruby-interpreter,
-	 ruby-activesupport-2.3 (>= ${source:Version}~),
-	 ruby-activesupport-2.3 (<< ${source:Version}.1~),
+	 ruby-activesupport-2.3 (>= @RAILS_VERSION@),
+	 ruby-activesupport-2.3 (<< @RAILS_VERSION at .1),
+	 ruby-activerecord-2.3 (>= @RAILS_VERSION@),
+	 ruby-activerecord-2.3 (<< @RAILS_VERSION at .1),
 	 ruby-rack (>= 1.1.0~) | librack-ruby (>= 1.1.0~)
 Conflicts: libactionpack-ruby (<< 2.3.11-1~), libactionpack-ruby1.8 (<< 2.3.11-1~)
 Replaces: libactionpack-ruby (<< 2.3.11-1~), libactionpack-ruby1.8 (<< 2.3.11-1~)
diff --git a/debian/rules b/debian/rules
index a5e7dc8..af4206f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,5 +11,13 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+RAILS_VERSION=$(shell sed -n "s/^  version: //p" metadata.yml)
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_testdir: debian/control
+	dh_testdir
+
+debian/control: debian/control.in
+	sed -e "s/@RAILS_VERSION@/$(RAILS_VERSION)/" >$@ <$<

-- 
ruby-actionpack-2.3.git



More information about the Pkg-ruby-extras-commits mailing list