[DRE-commits] [ruby-rpatricia] 01/01: Add debian packaging

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Wed Jan 29 12:33:54 UTC 2014


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

apoikos pushed a commit to branch master
in repository ruby-rpatricia.

commit b95cefd8f3b7991ccb9c3352e56e4de61315473e
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Wed Jan 29 13:56:20 2014 +0200

    Add debian packaging
---
 debian/changelog                                   |  5 +++
 debian/compat                                      |  1 +
 debian/control                                     | 24 ++++++++++
 debian/copyright                                   | 52 ++++++++++++++++++++++
 ...est.rb-exit-with-error-if-an-error-occurs.patch | 31 +++++++++++++
 debian/patches/series                              |  1 +
 debian/ruby-rpatricia.docs                         |  1 +
 debian/ruby-tests.rb                               |  1 +
 debian/rules                                       | 15 +++++++
 debian/source/format                               |  1 +
 debian/watch                                       |  2 +
 11 files changed, 134 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..af52510
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-rpatricia (1.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #705161)
+
+ -- Apollon Oikonomopoulos <apoikos at debian.org>  Wed, 29 Jan 2014 13:54:54 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..2065d82
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: ruby-rpatricia
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Apollon Oikonomopoulos <apoikos at debian.org>
+Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.0~)
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-rpatricia.git
+Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-rpatricia.git;a=summary
+Homepage: http://www.goto.info.waseda.ac.jp/~tatsuya/rpatricia/
+XS-Ruby-Versions: all
+
+Package: ruby-rpatricia
+Architecture: any
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Description: efficient IPv4/IPv6 prefix storage and lookup for Ruby
+ rPatricia provides a Ruby library for efficient IPv4 and IPv6 address/prefix
+ storage and lookups. Internally it uses a Patricia trie (also known as radix
+ tree), a data structure commonly used for routing table lookups and supports
+ prefix insertion/removal and best/exact match lookups.
+ .
+ The trie data structure is implemented in C, making rPatricia fast and
+ featuring a low memory footprint.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7b27a4d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,52 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rpatricia
+Source: http://www.goto.info.waseda.ac.jp/~tatsuya/rpatricia/
+
+Files: *
+Copyright: 2007-2014 Tatsuya Mori <mori.tatsuya at gmail.com>
+           2010-2014 Eric Wong <normalperson at yhbt.net>
+License: LGPL-2.1+
+ rpatricia is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or (at your
+ option) any later version.
+ .
+ rpatricia is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+ License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with rpatricia.  If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems the full text of the GNU Lesser General Public License is
+ available at /usr/share/common-licenses/LGPL-2.1 .
+
+Files: ext/rpatricia/patricia.*
+Copyright: Copyright (c) 1999-2013 The Regents of the University of Michigan
+           ("The Regents") and Merit Network, Inc.
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2014 Apollon Oikonomopoulos <apoikos at debian.org>
+License: BSD-2-Clause
+
+License: BSD-2-Clause
+ Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ 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.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "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 COPYRIGHT
+ HOLDER OR CONTRIBUTORS 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/0001-Make-test.rb-exit-with-error-if-an-error-occurs.patch b/debian/patches/0001-Make-test.rb-exit-with-error-if-an-error-occurs.patch
new file mode 100644
index 0000000..88d867c
--- /dev/null
+++ b/debian/patches/0001-Make-test.rb-exit-with-error-if-an-error-occurs.patch
@@ -0,0 +1,31 @@
+From: Apollon Oikonomopoulos <apoikos at debian.org>
+Date: Thu, 11 Apr 2013 11:22:51 +0300
+Subject: Make test.rb exit with error if an error occurs
+Forwarded: no
+Last-Update: 2014-01-29
+
+---
+ test.rb |    5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/test.rb b/test.rb
+index 6a2a066..7c2fd47 100644
+--- a/test.rb
++++ b/test.rb
+@@ -1,7 +1,10 @@
+ require 'rpatricia'
+ 
++$all_tests_ok = true
++
+ def my_test condition
+   puts (condition)? "ok!" : "error!"
++  $all_tests_ok &= condition
+ end
+ 
+ puts "test: creating Patricia object"
+@@ -64,3 +67,5 @@ puts "test: return all nodes in Hash"
+ my_test(t.nodes == {"127.0.0.0/24"=>"", "192.168.1.0/24"=>"", "192.168.2.0/24"=>"", "192.168.3.100/32"=>""})
+ 
+ t.destroy
++
++abort unless $all_tests_ok
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b10ffa3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Make-test.rb-exit-with-error-if-an-error-occurs.patch
diff --git a/debian/ruby-rpatricia.docs b/debian/ruby-rpatricia.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/ruby-rpatricia.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..f92f934
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1 @@
+require 'test.rb'
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a5e7dc8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/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
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..1655c7e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/rpatricia .*/rpatricia-(.*).tar.gz

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



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