[DRE-commits] [ruby-escape] 03/04: make provided gemspec always available

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Mar 23 14:10:12 UTC 2016


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

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

commit ab445c55342db76ca32a69ac7c269bee15349df8
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Mar 23 11:06:27 2016 -0300

    make provided gemspec always available
---
 debian/changelog                      |  3 ++
 debian/escape.gemspec                 | 40 -------------------------
 debian/patches/0001-Add-gemspec.patch | 56 +++++++++++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 debian/rules                          |  1 -
 5 files changed, 60 insertions(+), 41 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4753362..ebfcf04 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ ruby-escape (0.2-5) UNRELEASED; urgency=medium
 
   * Team upload.
   * Update packaging with a new dh-make-ruby run
+  * Move gemspec provided by the Debian packaging to
+    debian/patches/0001-Add-gemspec.patch so that it is also available when
+    running autopkgtest.
 
  -- Antonio Terceiro <terceiro at debian.org>  Wed, 23 Mar 2016 10:59:36 -0300
 
diff --git a/debian/escape.gemspec b/debian/escape.gemspec
deleted file mode 100644
index 7039899..0000000
--- a/debian/escape.gemspec
+++ /dev/null
@@ -1,40 +0,0 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
-  s.name = "escape"
-  s.version = "0.2"
-
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
-  s.authors = ["Tanaka Akira"]
-  s.date = "2013-08-18"
-  s.description = "escape library provides several HTML/URI/shell escaping functions."
-  s.email = ["akr at fsij.org"]
-  s.extra_rdoc_files = [
-    "ChangeLog",
-    "README",
-    "VERSION"
-  ]
-  s.files = [
-    "escape.rb"
-  ]
-  s.homepage = "http://www.a-k-r.org/escape/"
-  s.require_paths = ["lib"]
-  s.rubygems_version = "1.8.23"
-  s.summary = "Ruby Escape library"
-
-  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_development_dependency(%q<rspec>, [">= 2.3"])
-    else
-      s.add_dependency(%q<rspec>, [">= 2.3"])
-    end
-  else
-    s.add_dependency(%q<rspec>, [">= 2.3"])
-  end
-end
-
diff --git a/debian/patches/0001-Add-gemspec.patch b/debian/patches/0001-Add-gemspec.patch
new file mode 100644
index 0000000..60b4126
--- /dev/null
+++ b/debian/patches/0001-Add-gemspec.patch
@@ -0,0 +1,56 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Wed, 23 Mar 2016 11:04:51 -0300
+Subject: Add gemspec
+
+Because the original package does not provide one.
+---
+ escape.gemspec | 40 ++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 40 insertions(+)
+ create mode 100644 escape.gemspec
+
+diff --git a/escape.gemspec b/escape.gemspec
+new file mode 100644
+index 0000000..7039899
+--- /dev/null
++++ b/escape.gemspec
+@@ -0,0 +1,40 @@
++# Generated by jeweler
++# DO NOT EDIT THIS FILE DIRECTLY
++# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
++# -*- encoding: utf-8 -*-
++
++Gem::Specification.new do |s|
++  s.name = "escape"
++  s.version = "0.2"
++
++  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
++  s.authors = ["Tanaka Akira"]
++  s.date = "2013-08-18"
++  s.description = "escape library provides several HTML/URI/shell escaping functions."
++  s.email = ["akr at fsij.org"]
++  s.extra_rdoc_files = [
++    "ChangeLog",
++    "README",
++    "VERSION"
++  ]
++  s.files = [
++    "escape.rb"
++  ]
++  s.homepage = "http://www.a-k-r.org/escape/"
++  s.require_paths = ["lib"]
++  s.rubygems_version = "1.8.23"
++  s.summary = "Ruby Escape library"
++
++  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_development_dependency(%q<rspec>, [">= 2.3"])
++    else
++      s.add_dependency(%q<rspec>, [">= 2.3"])
++    end
++  else
++    s.add_dependency(%q<rspec>, [">= 2.3"])
++  end
++end
++
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..09de196
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Add-gemspec.patch
diff --git a/debian/rules b/debian/rules
index 9e40c0f..6d015f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,5 @@
 #!/usr/bin/make -f
 
-export DH_RUBY_GEMSPEC=debian/escape.gemspec
 export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:

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



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