From fb08f8bc2af49cc440db981df485255ad68f56ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 19 Sep 2016 20:39:42 +0200 Subject: [PATCH] opennebula: initial packaging --- opennebula/debian/changelog | 5 ++++ opennebula/debian/compat | 1 + opennebula/debian/control | 27 ++++++++++++++++++++ opennebula/debian/copyright | 17 +++++++++++++ opennebula/debian/docs | 2 ++ opennebula/debian/patches/rubygems.patch | 43 ++++++++++++++++++++++++++++++++ opennebula/debian/patches/series | 1 + opennebula/debian/rules | 5 ++++ opennebula/debian/source/format | 1 + opennebula/debian/watch | 2 ++ 10 files changed, 104 insertions(+) create mode 100644 opennebula/debian/changelog create mode 100644 opennebula/debian/compat create mode 100644 opennebula/debian/control create mode 100644 opennebula/debian/copyright create mode 100644 opennebula/debian/docs create mode 100644 opennebula/debian/patches/rubygems.patch create mode 100644 opennebula/debian/patches/series create mode 100755 opennebula/debian/rules create mode 100644 opennebula/debian/source/format create mode 100644 opennebula/debian/watch diff --git a/opennebula/debian/changelog b/opennebula/debian/changelog new file mode 100644 index 0000000..d24fe42 --- /dev/null +++ b/opennebula/debian/changelog @@ -0,0 +1,5 @@ +ruby-libopennebula (5.0.2-1) trusty; urgency=medium + + * Initial release + + -- František Dvořák Mon, 19 Sep 2016 19:47:08 +0200 diff --git a/opennebula/debian/compat b/opennebula/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/opennebula/debian/compat @@ -0,0 +1 @@ +7 diff --git a/opennebula/debian/control b/opennebula/debian/control new file mode 100644 index 0000000..dd46afa --- /dev/null +++ b/opennebula/debian/control @@ -0,0 +1,27 @@ +Source: ruby-libopennebula +Section: ruby +Priority: optional +Maintainer: Debian Ruby Extras Maintainers +Uploaders: František Dvořák +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 index 0000000..19ac386 --- /dev/null +++ b/opennebula/debian/copyright @@ -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 index 0000000..9ef2c9b --- /dev/null +++ b/opennebula/debian/docs @@ -0,0 +1,2 @@ +LICENSE +NOTICE diff --git a/opennebula/debian/patches/rubygems.patch b/opennebula/debian/patches/rubygems.patch new file mode 100644 index 0000000..20bd702 --- /dev/null +++ b/opennebula/debian/patches/rubygems.patch @@ -0,0 +1,43 @@ +Author: František Dvořák +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 index 0000000..7c57a99 --- /dev/null +++ b/opennebula/debian/patches/series @@ -0,0 +1 @@ +rubygems.patch diff --git a/opennebula/debian/rules b/opennebula/debian/rules new file mode 100755 index 0000000..5df7f46 --- /dev/null +++ b/opennebula/debian/rules @@ -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 index 0000000..163aaf8 --- /dev/null +++ b/opennebula/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/opennebula/debian/watch b/opennebula/debian/watch new file mode 100644 index 0000000..5d5095f --- /dev/null +++ b/opennebula/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/opennebula .*/opennebula-(.*).tar.gz -- 1.8.2.3