[DRE-commits] [ruby-feedparser] 03/05: Update packaging with a new dh-make-ruby run

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Mar 25 14:15:56 UTC 2016


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

terceiro pushed a commit to branch master
in repository ruby-feedparser.

commit 10fb96d0a3c1e24d8880efd0aae18e7d9622aef3
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Mar 25 11:08:15 2016 -0300

    Update packaging with a new dh-make-ruby run
---
 debian/changelog               |  1 +
 debian/control                 |  2 ++
 debian/ruby-feedparser.gemspec | 29 -----------------------------
 debian/ruby-tests.rake         |  6 ++++++
 debian/ruby-tests.rb           |  7 -------
 debian/rules                   | 16 +---------------
 6 files changed, 10 insertions(+), 51 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 22a8082..4b5a152 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ ruby-feedparser (0.9.4-1) UNRELEASED; urgency=medium
 
   [ Antonio Terceiro ]
   * New upstream release
+  * Update packaging with a new dh-make-ruby run
 
  -- Lucas Nussbaum <lucas at debian.org>  Fri, 25 Mar 2016 11:05:28 -0300
 
diff --git a/debian/control b/debian/control
index 41b0429..87bd5ab 100644
--- a/debian/control
+++ b/debian/control
@@ -6,12 +6,14 @@ Uploaders: Lucas Nussbaum <lucas at debian.org>,
            Antonio Terceiro <terceiro at debian.org>
 Build-Depends: debhelper (>= 9~),
                gem2deb,
+               rake,
                ruby-magic,
                ruby-mocha
 Standards-Version: 3.9.7
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-feedparser.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-feedparser.git
 Homepage: http://home.gna.org/ruby-feedparser/
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-feedparser
diff --git a/debian/ruby-feedparser.gemspec b/debian/ruby-feedparser.gemspec
deleted file mode 100644
index 1feffa7..0000000
--- a/debian/ruby-feedparser.gemspec
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
-  s.name = "ruby-feedparser"
-  s.version = "0.9.3"
-
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
-  s.authors = ["Lucas Nussbaum"]
-  s.autorequire = "feedparser"
-  s.date = "2013-08-28"
-  s.description = "Ruby library to parse ATOM and RSS feeds"
-  s.files = ["ChangeLog", "README", "COPYING", "LICENSE", "setup.rb", "Rakefile", "lib/feedparser/feedparser.rb", "lib/feedparser/filesizes.rb", "lib/feedparser/html-output.rb", "lib/feedparser/html2text-parser.rb", "lib/feedparser/rexml_patch.rb", "lib/feedparser/sgml-parser.rb", "lib/feedparser/text-output.rb", "lib/feedparser/textconverters.rb", "lib/feedparser.rb", "test/tc_feed_parse.rb", "test/tc_html2text_parser.rb", "test/tc_htmloutput.rb", "test/tc_parser.rb", "test/tc_sgml_pars [...]
-  s.require_paths = ["lib"]
-  s.requirements = ["none"]
-  s.rubygems_version = "1.8.23"
-  s.summary = "Ruby library to parse ATOM and RSS feeds"
-
-  if s.respond_to? :specification_version then
-    s.specification_version = 3
-
-    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
-      s.add_runtime_dependency(%q<magic>, [">= 0"])
-    else
-      s.add_dependency(%q<magic>, [">= 0"])
-    end
-  else
-    s.add_dependency(%q<magic>, [">= 0"])
-  end
-end
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..8290e4f
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+  t.libs = ['test']
+  t.test_files = FileList['test/**/tc_*.rb']
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 8093d50..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-if RUBY_VERSION < '1.9'
-  puts "I: skipping tests on ruby < 1.9, not really supported anymore"
-  exit
-end
-
-require 'test/tc_feed_parse.rb'
-require 'test/tc_sgml_parser.rb'
diff --git a/debian/rules b/debian/rules
index e1b1e05..2690870 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,21 +1,7 @@
 #!/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 LANG=C.UTF-8
-
-ifeq (,$(shell find . -maxdepth 1 -mindepth 1 -name metadata.yml -or -name '*.gemspec'))
-	export DH_RUBY_GEMSPEC=debian/ruby-feedparser.gemspec
-endif
+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-feedparser.git



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