[DRE-commits] [ruby-escape] 01/01: initial debian/

Jonas Genannt jonas at brachium-system.net
Mon Nov 25 17:20:26 UTC 2013


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

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

commit 5a50c5710d8c5e7326cc7314c2fd78e6476db0fc
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Mon Nov 25 18:17:32 2013 +0100

    initial debian/
---
 debian/changelog              |  22 +++++++
 debian/compat                 |   1 +
 debian/control                |  33 ++++++++++
 debian/copyright              |  35 ++++++++++
 debian/patches/rakefile.patch | 146 ++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series         |   1 +
 debian/ruby-escape.docs       |   1 +
 debian/ruby-tests.rb          |   3 +
 debian/rules                  |  25 ++++++++
 debian/source/format          |   1 +
 debian/watch                  |   2 +
 11 files changed, 270 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..44c9ee6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,22 @@
+ruby-escape (0.2-2) unstable; urgency=low
+
+  * recreated debian/
+   - with gem2deb libruby-escape => ruby-escape (Closes: #722385)
+   - added Homepage field (Closes: #615363)
+   - better long Description
+  * change Maintainer to Ruby pkg group (Closes: #677287)
+  * added myself as Uploader
+
+ -- Jonas Genannt <jonas.genannt at capi2name.de>  Mon, 25 Nov 2013 18:00:49 +0100
+
+libescape-ruby (0.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- NIIBE Yutaka <gniibe at fsij.org>  Thu,  1 Mar 2007 12:06:33 +0900
+
+libescape-ruby (0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #406156).
+
+ -- NIIBE Yutaka <gniibe at fsij.org>  Wed, 10 Jan 2007 13:14:15 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0a9bb2d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: ruby-escape
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: NIIBE Yutaka <gniibe at fsij.org>,
+           Jonas Genannt <jonas.genannt at capi2name.de>
+Build-Depends: debhelper (>= 9), gem2deb (>= 0.4.1~)
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-escape.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-escape.git;a=summary
+Homepage: http://www.a-k-r.org/escape/
+XS-Ruby-Versions: all
+
+Package: ruby-escape
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Replaces: libescape-ruby (<< 0.2-2~)
+Breaks: libescape-ruby (<< 0.2-2~)
+Provides: libescape-ruby
+Depends: ruby | ruby-interpreter, ${misc:Depends}, ${shlibs:Depends}
+Description: HTML/URI/shell escaping utilities for Ruby
+ For Ruby programmers, this utility provides several escaping functions
+ for HTML, URI, and shell command line handling. This library is an full
+ replacement for Ruby internal escaping Shellwords module.
+
+Package: libescape-ruby
+Section: oldlibs
+Priority: extra
+Architecture: all
+Depends: ruby-escape, ${misc:Depends}
+Description: Transitional package for ruby-escape
+ This is a transitional package to ease upgrades to the ruby-escape
+ package. It can safely be removed.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..99413aa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: escape
+Source: http://www.a-k-r.org/escape/
+
+Files: *
+Copyright: 2006-2007 Tanaka Akira <akr at fsij.org>
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2007 NIIBE Yutaka <gniibe at fsij.org>
+           2013 Jonas Genannt <jonas.genannt at capi2name.de>
+License: public-domain
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+  1. Redistributions of source code must retain the above copyright notice, this
+     list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright notice,
+     this list of conditions and the following disclaimer in the documentation
+     and/or other materials provided with the distribution.
+  3. The name of the author may not be used to endorse or promote products
+     derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+ EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ OF SUCH DAMAGE.
diff --git a/debian/patches/rakefile.patch b/debian/patches/rakefile.patch
new file mode 100644
index 0000000..b1b6f67
--- /dev/null
+++ b/debian/patches/rakefile.patch
@@ -0,0 +1,146 @@
+Author: Jonas Genannt <jonas.genannt at capi2name.de>
+Description: Add default gemspec file and rakefile for gem2deb
+Forwarded: https://github.com/akr/escape/pull/3
+
+--- a/Rakefile	2013-08-18 11:53:54.522983618 +0200
++++ b/Rakefile	2013-08-18 13:04:43.480719075 +0200
+@@ -0,0 +1,25 @@
++$:.unshift(File.dirname(__FILE__))
++require 'rubygems'
++require 'rake'
++require 'rake/testtask'
++
++begin
++  require 'jeweler'
++  Jeweler::Tasks.new do |gem|
++    gem.name = "escape"
++    gem.version = "0.2"
++    gem.summary = %Q{Ruby Escape library}
++    gem.description = %Q{escape library provides several HTML/URI/shell escaping functions.}
++    gem.email = [ "akr at fsij.org" ]
++    gem.homepage = "http://www.a-k-r.org/escape/"
++    gem.authors = [ "Tanaka Akira" ]
++    gem.add_development_dependency "rspec", '>= 2.3'
++    gem.extra_rdoc_files = [ "README", "ChangeLog", "VERSION" ]
++    gem.files = [ "escape.rb" ]
++  end
++  Jeweler::GemcutterTasks.new
++rescue LoadError
++  puts "Jeweler not available. Install it with: gem install jeweler"
++end
++
++
+--- a/escape.gemspec	2013-08-18 11:53:54.522983618 +0200
++++ b/escape.gemspec	2013-08-18 13:05:04.316718799 +0200
+@@ -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
++
+--- a/metadata.yml	2013-08-18 11:53:54.522983618 +0200
++++ b/metadata.yml	2013-08-18 13:30:24.336698434 +0200
+@@ -0,0 +1,68 @@
++--- !ruby/object:Gem::Specification
++name: escape
++version: !ruby/object:Gem::Version
++  version: '0.2'
++  prerelease: 
++platform: ruby
++authors:
++- Tanaka Akira
++autorequire: 
++bindir: bin
++cert_chain: []
++date: 2013-08-18 00:00:00.000000000 Z
++dependencies:
++- !ruby/object:Gem::Dependency
++  name: rspec
++  requirement: !ruby/object:Gem::Requirement
++    none: false
++    requirements:
++    - - ! '>='
++      - !ruby/object:Gem::Version
++        version: '2.3'
++  type: :development
++  prerelease: false
++  version_requirements: !ruby/object:Gem::Requirement
++    none: false
++    requirements:
++    - - ! '>='
++      - !ruby/object:Gem::Version
++        version: '2.3'
++description: escape library provides several HTML/URI/shell escaping functions.
++email:
++- akr at fsij.org
++executables: []
++extensions: []
++extra_rdoc_files:
++- ChangeLog
++- README
++- VERSION
++files:
++- escape.rb
++- ChangeLog
++- README
++- VERSION
++homepage: http://www.a-k-r.org/escape/
++licenses: []
++post_install_message: 
++rdoc_options: []
++require_paths:
++- lib
++required_ruby_version: !ruby/object:Gem::Requirement
++  none: false
++  requirements:
++  - - ! '>='
++    - !ruby/object:Gem::Version
++      version: '0'
++required_rubygems_version: !ruby/object:Gem::Requirement
++  none: false
++  requirements:
++  - - ! '>='
++    - !ruby/object:Gem::Version
++      version: '0'
++requirements: []
++rubyforge_project: 
++rubygems_version: 1.8.23
++signing_key: 
++specification_version: 3
++summary: Ruby Escape library
++test_files: []
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..61091fe
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+rakefile.patch
diff --git a/debian/ruby-escape.docs b/debian/ruby-escape.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/ruby-escape.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..bcc864a
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,3 @@
+$: << 'lib' << '.'
+
+require 'test/test-escape.rb'
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..67eb1df
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/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
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
+
+# move escape.rb into lib on buildtime, because gem2deb needs lib/
+override_dh_auto_configure:
+	mkdir lib
+	cp escape.rb lib/
+	dh_auto_configure -O--buildsystem=ruby
+
+override_dh_auto_clean:
+	rm -rf lib
+	dh_auto_clean -O--buildsystem=ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0912cd0
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.a-k-r.org/escape/escape-(.*)\.tar\.gz

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