[DRE-commits] [ruby-fast-gettext] 01/09: Update Debian packaging using dh-make-ruby

Sebastien Badia sbadia-guest at moszumanska.debian.org
Mon Feb 29 14:47:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

sbadia-guest pushed a commit to branch master
in repository ruby-fast-gettext.

commit 1941bff60df21de4c7cf83eb74490a35ba2f4a20
Author: Sebastien Badia <seb at sebian.fr>
Date:   Mon Feb 29 11:10:35 2016 -0300

    Update Debian packaging using dh-make-ruby
---
 debian/control         | 11 +++++++++--
 debian/ruby-tests.rake |  5 +++++
 debian/ruby-tests.rb   |  3 ---
 debian/rules           | 13 ++-----------
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/debian/control b/debian/control
index d135e43..1827780 100644
--- a/debian/control
+++ b/debian/control
@@ -3,17 +3,24 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Dmitry Borodaenko <angdraug at debian.org>
-Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.0~), ruby-rspec (>= 3), ruby-activerecord, ruby-sqlite3, ruby-i18n, ruby-protected-attributes
 Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9~),
+               gem2deb,
+               ruby-activerecord,
+               ruby-i18n,
+               ruby-protected-attributes,
+               ruby-rspec (>= 3),
+               ruby-sqlite3
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-fast-gettext.git
 Vcs-Browser: http://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-fast-gettext.git
 Homepage: https://github.com/grosser/fast_gettext
 XS-Ruby-Versions: all
+Testsuite: autopkgtest-pkg-ruby
 
 Package: ruby-fast-gettext
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Depends: ruby | ruby-interpreter, ${misc:Depends}, ${shlibs:Depends}
 Suggests: ruby-activerecord
 Description: Fast GetText implementation for Ruby
  FastGettext provides fast, memory-efficient, and thread-safe
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..cf1591e
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/spectask'
+
+Gem2Deb::Rake::RSpecTask.new do |spec|
+  spec.pattern = './spec/**/*_spec.rb'
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index e80680f..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-$: << 'spec'
-require 'rspec/autorun'
-Dir['spec/**/*_spec.rb'].each { |f| require f }
diff --git a/debian/rules b/debian/rules
index a5e7dc8..3454d59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,6 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
-#
-# Uncomment to ignore all test failures (but the tests will run anyway)
-#export DH_RUBY_IGNORE_TESTS=all
-#
-# Uncomment to ignore some test failures (but the tests will run anyway).
-# Valid values:
-#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
-#
-# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fast-gettext.git



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