[DRE-commits] [ruby-feedparser] 01/03: Copy gemspec from .gem file to fix rubygems-integration support

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Mar 23 20:09:08 UTC 2014


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

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

commit 19f34c3297a0078c119fea3defb6596d9b24808f
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Mar 23 16:54:09 2014 -0300

    Copy gemspec from .gem file to fix rubygems-integration support
---
 debian/changelog               |  6 ++++++
 debian/ruby-feedparser.gemspec | 29 +++++++++++++++++++++++++++++
 debian/rules                   |  4 ++++
 debian/watch                   |  5 ++---
 4 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6849ae6..aa65bac 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-feedparser (0.9.3-2) UNRELEASED; urgency=medium
+
+  * Copy gemspec from .gem file to fix rubygems-integration support
+
+ -- Antonio Terceiro <terceiro at debian.org>  Sun, 23 Mar 2014 16:52:22 -0300
+
 ruby-feedparser (0.9.3-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/ruby-feedparser.gemspec b/debian/ruby-feedparser.gemspec
new file mode 100644
index 0000000..1feffa7
--- /dev/null
+++ b/debian/ruby-feedparser.gemspec
@@ -0,0 +1,29 @@
+# -*- 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/rules b/debian/rules
index ad9b7a1..e1b1e05 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,5 +13,9 @@
 
 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
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/watch b/debian/watch
index bcde5bd..1ac8a2f 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,2 @@
-version=2
-#http://download.gna.org/ruby-feedparser/ruby-feedparser-(.*)\.tgz debian
-http://people.debian.org/~terceiro/ruby-feedparser/ruby-feedparser-(.*)\.tgz debian
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ruby-feedparser .*/ruby-feedparser-(.*).tar.gz

-- 
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