[DRE-commits] [SCM] ruby-activeresource-2.3.git branch, debian-sid, updated. debian/2.3.11-1-2-gd4c39eb
Ondřej Surý
ondrej at sury.org
Fri Jun 3 12:41:08 UTC 2011
The following commit has been merged in the debian-sid branch:
commit d8b1ae580ff2e236d19d18801443a823794bdae0
Author: Ondřej Surý <ondrej at sury.org>
Date: Fri Jun 3 14:36:09 2011 +0200
Use RAILS_VERSION from metadata.yml to generate dependencies
diff --git a/debian/control b/debian/control
index 00d9180..318fe1b 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-activeresource-2.3.git
Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-activeresource-2.3.git;a=summary
@@ -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)
Description: Connects objects and REST web services
Active Resource (ARes) connects business objects and Representational
State Transfer (REST) web services. It implements object-relational
diff --git a/debian/control b/debian/control.in
similarity index 84%
copy from debian/control
copy to debian/control.in
index 00d9180..038c3b4 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-activeresource-2.3.git
Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-activeresource-2.3.git;a=summary
@@ -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)
Description: Connects objects and REST web services
Active Resource (ARes) connects business objects and Representational
State Transfer (REST) web services. It implements object-relational
diff --git a/debian/rules b/debian/rules
index 646669b..9ae671a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,5 +12,13 @@ export DH_RUBY_IGNORE_TESTS=ruby1.9.1
# 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-activeresource-2.3.git
More information about the Pkg-ruby-extras-commits
mailing list