[DRE-commits] [ruby-mpi] 01/01: Create Debian package
Youhei SASAKI
uwabami-guest at moszumanska.debian.org
Thu Mar 13 08:04:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
uwabami-guest pushed a commit to branch master
in repository ruby-mpi.
commit b7ae65edd8b14c59c2c35a4f7df01b30ace568ad
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date: Thu Mar 13 15:16:11 2014 +0900
Create Debian package
Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
debian/changelog | 5 ++++
debian/compat | 1 +
debian/control | 20 +++++++++++++++
debian/copyright | 31 +++++++++++++++++++++++
debian/patches/0001-FixNArrayPATH.patch | 29 +++++++++++++++++++++
debian/patches/0002-DropRubygemsDepends.patch | 18 +++++++++++++
debian/patches/0003-add_spec_helper_require.patch | 18 +++++++++++++
debian/patches/series | 3 +++
debian/ruby-mpi.docs | 1 +
debian/ruby-mpi.examples | 2 ++
debian/ruby-tests.rake | 6 +++++
debian/rules | 7 +++++
debian/source/format | 1 +
debian/source/local-options | 1 +
debian/watch | 2 ++
15 files changed, 145 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..839ff6b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-mpi (0.2.0-1) unstable; urgency=medium
+
+ * Initial release (Closes: #741506)
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org> Thu, 13 Mar 2014 15:16:11 +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..c9e44ca
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: ruby-mpi
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Youhei SASAKI <uwabami at gfd-dennou.org>
+Build-Depends: debhelper (>= 9~), gem2deb (>= 0.6.1~), rake, ruby-rspec, ruby-narray, mpi-default-dev, mpi-default-bin
+Standards-Version: 3.9.5
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-mpi.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-mpi.git;a=summary
+Homepage: http://github.com/seiya/ruby-mpi
+XS-Ruby-Versions: all
+
+Package: ruby-mpi
+Architecture: any
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-narray
+Description: Ruby binding of MPI
+ Ruby-MPI is a ruby binding of Message Passing Interface (MPI), which is
+ an API specification that allows processes to communicate with one
+ another by sending and receiving messages.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3a7113e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ruby-mpi
+Source: http://github.com/seiya/ruby-mpi
+
+Files: *
+Copyright: 2011 Seiya Nishizawa
+License: Expat
+
+Files: debian/*
+Copyright: 2014 Youhei SASAKI <uwabami at gfd-dennou.org>
+License: Expat
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/patches/0001-FixNArrayPATH.patch b/debian/patches/0001-FixNArrayPATH.patch
new file mode 100644
index 0000000..4192246
--- /dev/null
+++ b/debian/patches/0001-FixNArrayPATH.patch
@@ -0,0 +1,29 @@
+From: Debian Ruby Extras Maintainers
+ <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Date: Thu, 13 Mar 2014 15:37:14 +0900
+Subject: FixNArrayPATH
+
+---
+ ext/mpi/extconf.rb | 12 ++----------
+ 1 file changed, 2 insertions(+), 10 deletions(-)
+
+--- ruby-mpi.orig/ext/mpi/extconf.rb
++++ ruby-mpi/ext/mpi/extconf.rb
+@@ -1,15 +1,7 @@
+ require "mkmf"
+
+ CONFIG['CC'] = "mpicc"
+-gem_path = nil
+-begin
+- require "rubygems"
+- if (spec = Gem.source_index.find_name("narray")).any?
+- gem_path = spec.last.full_gem_path
+- end
+-rescue LoadError
+- dir_config("narray", Config::CONFIG["sitearchdir"])
+-end
+-find_header("narray.h", gem_path)
++dir_config("narray", Config::CONFIG["vendorarchdir"])
++find_header("narray.h", Config::CONFIG["vendorarchdir"])
+
+ create_makefile("mpi")
diff --git a/debian/patches/0002-DropRubygemsDepends.patch b/debian/patches/0002-DropRubygemsDepends.patch
new file mode 100644
index 0000000..8fe70e8
--- /dev/null
+++ b/debian/patches/0002-DropRubygemsDepends.patch
@@ -0,0 +1,18 @@
+From: Debian Ruby Extras Maintainers
+ <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Date: Thu, 13 Mar 2014 15:37:14 +0900
+Subject: DropRubygemsDepends
+
+---
+ lib/mpi.rb | 4 ----
+ 1 file changed, 4 deletions(-)
+
+--- ruby-mpi.orig/lib/mpi.rb
++++ ruby-mpi/lib/mpi.rb
+@@ -1,6 +1,2 @@
+-begin
+- require "rubygems"
+-rescue LoadError
+-end
+ require "narray"
+ require "mpi.so"
diff --git a/debian/patches/0003-add_spec_helper_require.patch b/debian/patches/0003-add_spec_helper_require.patch
new file mode 100644
index 0000000..5b73e93
--- /dev/null
+++ b/debian/patches/0003-add_spec_helper_require.patch
@@ -0,0 +1,18 @@
+From: Debian Ruby Extras Maintainers
+ <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Date: Thu, 13 Mar 2014 15:37:14 +0900
+Subject: add_spec_helper_require
+
+---
+ spec/ruby-mpi_spec.rb | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- ruby-mpi.orig/spec/ruby-mpi_spec.rb
++++ ruby-mpi/spec/ruby-mpi_spec.rb
+@@ -1,4 +1,5 @@
+-require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
++require 'rspec'
++require 'mpi'
+
+ describe "MPI" do
+ before(:all) do
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..574a9b4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001-FixNArrayPATH.patch
+0002-DropRubygemsDepends.patch
+0003-add_spec_helper_require.patch
diff --git a/debian/ruby-mpi.docs b/debian/ruby-mpi.docs
new file mode 100644
index 0000000..e475c53
--- /dev/null
+++ b/debian/ruby-mpi.docs
@@ -0,0 +1 @@
+README.rdoc
diff --git a/debian/ruby-mpi.examples b/debian/ruby-mpi.examples
new file mode 100644
index 0000000..a664c49
--- /dev/null
+++ b/debian/ruby-mpi.examples
@@ -0,0 +1,2 @@
+samples/hello.rb
+samples/narray.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..fbc460a
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'rspec/core'
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:default) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
+end
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5270c4d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+#
+# skip all test because can't use network/MPI in sbuild
+export DH_RUBY_IGNORE_TESTS=all
+
+%:
+ 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/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..4aceb10
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+unapply-patches
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c457d0d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ruby-mpi .*/ruby-mpi-(.*).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mpi.git
More information about the Pkg-ruby-extras-commits
mailing list