[DRE-commits] [SCM] rails-2.3.git branch, debian-sid, updated. 0288d3496b551d2b35d0233f10713cb4d65bf2d6

Ondřej Surý ondrej at sury.org
Fri Jun 10 14:27:37 UTC 2011


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

    Use RAILS_VERSION from metadata.yml to generate dependencies

diff --git a/debian/control b/debian/control
index 6f3a772..115fb1f 100644
--- a/debian/control
+++ b/debian/control
@@ -7,11 +7,16 @@ DM-Upload-Allowed: yes
 Build-Depends: debhelper (>= 7.0.50~),
 	       gem2deb (>= 0.2.3~),
 	       rake (>= 0.8.3),
-	       ruby-activesupport-2.3,
-	       ruby-activerecord-2.3,
-	       ruby-actionpack-2.3,
-	       ruby-actionmailer-2.3,
-	       ruby-activeresource-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-actionpack-2.3 (>= 2.3.11),
+	       ruby-actionpack-2.3 (<< 2.3.11.1),
+	       ruby-actionmailer-2.3 (>= 2.3.11),
+	       ruby-actionmailer-2.3 (<< 2.3.11.1),
+	       ruby-activeresource-2.3 (>= 2.3.11),
+	       ruby-activeresource-2.3 (<< 2.3.11.1)
 Standards-Version: 3.9.2
 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-rails-2.3.git
 Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-rails-2.3.git;a=summary
@@ -25,12 +30,21 @@ Depends: ${shlibs:Depends},
 	 ${misc:Depends},
 	 ruby | ruby-interpreter,
 	 rake (>= 0.8.3),
-	 ruby-activesupport-2.3,
-	 ruby-activerecord-2.3,
-	 ruby-actionpack-2.3,
-	 ruby-actionmailer-2.3,
-	 ruby-activeresource-2.3
-Description: Web-application framework with template engine, control-flow layer, and ORM.
- Rails is a framework for building web-application using CGI, FCGI,
- mod_ruby, or WEBrick on top of either MySQL, PostgreSQL, SQLite, DB2,
- SQL Server, or Oracle with eRuby- or Builder-based templates.
+	 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-actionpack-2.3 (>= 2.3.11),
+	 ruby-actionpack-2.3 (<< 2.3.11.1),
+	 ruby-actionmailer-2.3 (>= 2.3.11),
+	 ruby-actionmailer-2.3 (<< 2.3.11.1),
+	 ruby-activeresource-2.3 (>= 2.3.11),
+	 ruby-activeresource-2.3 (<< 2.3.11.1)
+Description: MVC ruby based framework geared for web application development
+ Rails is a full-stack, open-source web framework in Ruby for writing
+ real-world applications.
+ .
+ Being a full-stack framework means that all layers are built to work
+ seamlessly together. That way you don't repeat yourself and you can
+ use a single language from top to bottom. Everything from templates to
+ control flow to business logic is written in Ruby.
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..e5a079a
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,50 @@
+Source: ruby-rails-2.3
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Ondřej Surý <ondrej at debian.org>
+DM-Upload-Allowed: yes
+Build-Depends: debhelper (>= 7.0.50~),
+	       gem2deb (>= 0.2.3~),
+	       rake (>= 0.8.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-actionpack-2.3 (>= @RAILS_VERSION@),
+	       ruby-actionpack-2.3 (<< @RAILS_VERSION at .1),
+	       ruby-actionmailer-2.3 (>= @RAILS_VERSION@),
+	       ruby-actionmailer-2.3 (<< @RAILS_VERSION at .1),
+	       ruby-activeresource-2.3 (>= @RAILS_VERSION@),
+	       ruby-activeresource-2.3 (<< @RAILS_VERSION at .1)
+Standards-Version: 3.9.2
+Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-rails-2.3.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-rails-2.3.git;a=summary
+Homepage: http://www.rubyonrails.org
+XS-Ruby-Versions: all
+
+Package: ruby-rails-2.3
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends},
+	 ${misc:Depends},
+	 ruby | ruby-interpreter,
+	 rake (>= 0.8.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-actionpack-2.3 (>= @RAILS_VERSION@),
+	 ruby-actionpack-2.3 (<< @RAILS_VERSION at .1),
+	 ruby-actionmailer-2.3 (>= @RAILS_VERSION@),
+	 ruby-actionmailer-2.3 (<< @RAILS_VERSION at .1),
+	 ruby-activeresource-2.3 (>= @RAILS_VERSION@),
+	 ruby-activeresource-2.3 (<< @RAILS_VERSION at .1)
+Description: MVC ruby based framework geared for web application development
+ Rails is a full-stack, open-source web framework in Ruby for writing
+ real-world applications.
+ .
+ Being a full-stack framework means that all layers are built to work
+ seamlessly together. That way you don't repeat yourself and you can
+ use a single language from top to bottom. Everything from templates to
+ control flow to business logic is written in Ruby.
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)/" >$@ <$<

-- 
rails-2.3.git



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