[DRE-commits] [SCM] ruby-activerecord-2.3.git branch, debian-sid, updated. debian/2.3.11-1-2-g8e70612
Ondřej Surý
ondrej at sury.org
Fri Jun 3 12:40:59 UTC 2011
The following commit has been merged in the debian-sid branch:
commit 573f090b95fb4809ad24bd0808c236fe74dc92af
Author: Ondřej Surý <ondrej at sury.org>
Date: Fri Jun 3 14:33:25 2011 +0200
Use RAILS_VERSION from metadata.yml to generate dependencies
diff --git a/debian/control b/debian/control
index c01423c..ede30c5 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ 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-activesupport-2.3 (>= 2.3.11),
+ ruby-activesupport-2.3 (<< 2.3.11.1)
Standards-Version: 3.9.2
Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-activerecord-2.3.git
Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-activerecord-2.3.git
@@ -19,8 +20,8 @@ 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)
Replaces: libactiverecord-ruby (<< 2.3.11-1~),
libactiverecord-ruby1.8 (<< 2.3.11-1~),
libactiverecord-ruby1.9.1 (<< 2.3.11-1~)
diff --git a/debian/control b/debian/control.in
similarity index 86%
copy from debian/control
copy to debian/control.in
index c01423c..dbaca21 100644
--- a/debian/control
+++ b/debian/control.in
@@ -6,7 +6,8 @@ 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-activesupport-2.3 (>= @RAILS_VERSION@),
+ ruby-activesupport-2.3 (<< @RAILS_VERSION at .1)
Standards-Version: 3.9.2
Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-activerecord-2.3.git
Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-activerecord-2.3.git
@@ -19,8 +20,8 @@ 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)
Replaces: libactiverecord-ruby (<< 2.3.11-1~),
libactiverecord-ruby1.8 (<< 2.3.11-1~),
libactiverecord-ruby1.9.1 (<< 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-activerecord-2.3.git
More information about the Pkg-ruby-extras-commits
mailing list