--- /dev/null
+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
--- /dev/null
+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.
--- /dev/null
+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'
--- /dev/null
+LICENSE
+NOTICE
--- /dev/null
+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'
--- /dev/null
+rubygems.patch
--- /dev/null
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+%:
+ dh $@ --buildsystem=ruby --with ruby
--- /dev/null
+3.0 (quilt)
--- /dev/null
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/opennebula .*/opennebula-(.*).tar.gz