[DRE-commits] [ruby-mocha-on-bacon] 01/03: Refresh Debian packaging (using dh-make-ruby)

Sebastien Badia sbadia-guest at moszumanska.debian.org
Sat Mar 5 17:35:22 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-mocha-on-bacon.

commit d07ad85ece2aaef8903ee9f161cf460ab732bf17
Author: Sebastien Badia <seb at sebian.fr>
Date:   Sat Mar 5 14:29:05 2016 -0300

    Refresh Debian packaging (using dh-make-ruby)
---
 debian/control         | 10 ++++++----
 debian/copyright       |  2 +-
 debian/ruby-tests.rake |  5 +++++
 debian/rules           | 13 ++-----------
 debian/watch           |  3 +--
 5 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/debian/control b/debian/control
index c4e36da..e320907 100644
--- a/debian/control
+++ b/debian/control
@@ -2,16 +2,18 @@ Source: ruby-mocha-on-bacon
 Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
-Uploaders: Per Andersson <avtobiff at gmail.com>
+Uploaders: Per Andersson <avtobiff at gmail.com>, Sebastien Badia <seb at sebian.fr>
 Build-Depends: debhelper (>= 9~),
                gem2deb,
                rake,
                ruby-bacon,
-               ruby-mocha
+               ruby-mocha (>= 0.9.8),
+               ruby-rspec
 Standards-Version: 3.9.7
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-mocha-on-bacon.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-mocha-on-bacon.git
-Homepage: https://github.com/alloy/mocha-on-bacon/
+Homepage: https://github.com/alloy/mocha-on-bacon
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-mocha-on-bacon
@@ -19,7 +21,7 @@ Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ruby | ruby-interpreter,
          ruby-bacon,
-         ruby-mocha,
+         ruby-mocha (>= 0.9.8),
          ${misc:Depends},
          ${shlibs:Depends}
 Description: Mocha adapter for Bacon
diff --git a/debian/copyright b/debian/copyright
index 6f1ff52..1999ff5 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,6 +1,6 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: mocha-on-bacon
-Source: http://github.com/alloy/mocha-on-bacon/
+Source: https://github.com/alloy/mocha-on-bacon
 
 Files: *
 Copyright: 2011 Eloy Durán <eloy.de.enige at gmail.com>
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/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
diff --git a/debian/watch b/debian/watch
index 1ef7b23..d86fc2e 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,2 @@
 version=3
-opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/mocha-on-bacon-$1\.tar\.gz/ \
-  https://github.com/alloy/mocha-on-bacon/tags .*/v?(\d\S*)\.tar\.gz
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/mocha-on-bacon .*/mocha-on-bacon-(.*).tar.gz

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



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