opennebula: initial packaging
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 19 Sep 2016 18:39:42 +0000 (20:39 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 19 Sep 2016 18:39:42 +0000 (20:39 +0200)
opennebula/debian/changelog [new file with mode: 0644]
opennebula/debian/compat [new file with mode: 0644]
opennebula/debian/control [new file with mode: 0644]
opennebula/debian/copyright [new file with mode: 0644]
opennebula/debian/docs [new file with mode: 0644]
opennebula/debian/patches/rubygems.patch [new file with mode: 0644]
opennebula/debian/patches/series [new file with mode: 0644]
opennebula/debian/rules [new file with mode: 0755]
opennebula/debian/source/format [new file with mode: 0644]
opennebula/debian/watch [new file with mode: 0644]

diff --git a/opennebula/debian/changelog b/opennebula/debian/changelog
new file mode 100644 (file)
index 0000000..d24fe42
--- /dev/null
@@ -0,0 +1,5 @@
+ruby-libopennebula (5.0.2-1) trusty; urgency=medium
+
+  * Initial release
+
+ -- František Dvořák <valtri@civ.zcu.cz>  Mon, 19 Sep 2016 19:47:08 +0200
diff --git a/opennebula/debian/compat b/opennebula/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/opennebula/debian/control b/opennebula/debian/control
new file mode 100644 (file)
index 0000000..dd46afa
--- /dev/null
@@ -0,0 +1,27 @@
+Source: ruby-libopennebula
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
+Uploaders: František Dvořák <valtri@civ.zcu.cz>
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.1~)
+Standards-Version: 3.9.5
+#Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-opennebula.git
+#Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-opennebula.git;a=summary
+Vcs-Browser: http://scientific.zcu.cz/git/?p=packaging-rpm-NOW.git;a=summary
+Homepage: http://opennebula.org
+XS-Ruby-Versions: all
+
+Package: ruby-libopennebula
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-json, ruby-nokogiri
+Description: OpenNebula Ruby Client API
+ OpenNebula is an open source virtual infrastructure engine that enables the
+ dynamic deployment and re-placement of virtual machines on a pool of physical
+ resources.
+ .
+ ONE (OpenNebula) extends the benefits of virtualization platforms from a
+ single physical resource to a pool of resources, decoupling the server not
+ only from the physical infrastructure but also from the physical location.
+ .
+ This package provide ruby libraries needed to talk to OpenNebula.
diff --git a/opennebula/debian/copyright b/opennebula/debian/copyright
new file mode 100644 (file)
index 0000000..19ac386
--- /dev/null
@@ -0,0 +1,17 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: OpenNebula
+Source: http://dev.opennebula.org/projects/opennebula/repository
+
+Files: *
+Copyright: 2002-2016, OpenNebula Project, OpenNebula Systems
+           2002-2016, OpenNebula Project, OpenNebula Systems (formerly C12G Labs)
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 CESNET - INDIGO-DataCloud
+License: Apache-2.0
+Comment: The Debian packaging is licensed under the same terms as the original package.
+
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/opennebula/debian/docs b/opennebula/debian/docs
new file mode 100644 (file)
index 0000000..9ef2c9b
--- /dev/null
@@ -0,0 +1,2 @@
+LICENSE
+NOTICE
diff --git a/opennebula/debian/patches/rubygems.patch b/opennebula/debian/patches/rubygems.patch
new file mode 100644 (file)
index 0000000..20bd702
--- /dev/null
@@ -0,0 +1,43 @@
+Author: František Dvořák <valtri@civ.zcu.cz>
+Date:   Mon Sep 19 19:53:04 2016 +0200
+
+    Patch out rubygems as required in Debian guidelines
+
+diff --git a/lib/cloud/CloudClient.rb b/lib/cloud/CloudClient.rb
+index d3f1663..56b68b4 100644
+--- a/lib/cloud/CloudClient.rb
++++ b/lib/cloud/CloudClient.rb
+@@ -14,7 +14,6 @@
+ # limitations under the License.                                             #
+ #--------------------------------------------------------------------------- #
+-require 'rubygems'
+ require 'uri'
+ require 'digest/sha1'
+diff --git a/lib/opennebula.rb b/lib/opennebula.rb
+index 38a8b8d..ec336d9 100644
+--- a/lib/opennebula.rb
++++ b/lib/opennebula.rb
+@@ -15,8 +15,7 @@
+ #--------------------------------------------------------------------------- #
+-begin # require 'rubygems'
+-    require 'rubygems'
++begin
+ rescue Exception
+ end
+diff --git a/lib/opennebula/ldap_auth.rb b/lib/opennebula/ldap_auth.rb
+index aa951d6..6f048db 100644
+--- a/lib/opennebula/ldap_auth.rb
++++ b/lib/opennebula/ldap_auth.rb
+@@ -14,7 +14,6 @@
+ # limitations under the License.                                               #
+ # ---------------------------------------------------------------------------- #
+-require 'rubygems'
+ require 'opennebula'
+ require 'net/ldap'
+ require 'yaml'
diff --git a/opennebula/debian/patches/series b/opennebula/debian/patches/series
new file mode 100644 (file)
index 0000000..7c57a99
--- /dev/null
@@ -0,0 +1 @@
+rubygems.patch
diff --git a/opennebula/debian/rules b/opennebula/debian/rules
new file mode 100755 (executable)
index 0000000..5df7f46
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+%:
+       dh $@ --buildsystem=ruby --with ruby
diff --git a/opennebula/debian/source/format b/opennebula/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/opennebula/debian/watch b/opennebula/debian/watch
new file mode 100644 (file)
index 0000000..5d5095f
--- /dev/null
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/opennebula .*/opennebula-(.*).tar.gz