From 48490e91ef580c9dd6296062243df3b60a07f370 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 12 Mar 2014 21:37:11 +0100 Subject: [PATCH] Packaging of ruby-opennebula-4.4. --- ruby-opennebula-4.4/debian/changelog | 4 +- ruby-opennebula-4.4/debian/control | 22 ++++++++--- ruby-opennebula-4.4/debian/copyright | 46 +++++++++++------------ ruby-opennebula-4.4/debian/patches/rubygems.patch | 26 +++++++++++++ ruby-opennebula-4.4/debian/patches/series | 1 + ruby-opennebula-4.4/debian/ruby-opennebula.docs | 1 - 6 files changed, 67 insertions(+), 33 deletions(-) create mode 100644 ruby-opennebula-4.4/debian/patches/rubygems.patch create mode 100644 ruby-opennebula-4.4/debian/patches/series delete mode 100644 ruby-opennebula-4.4/debian/ruby-opennebula.docs diff --git a/ruby-opennebula-4.4/debian/changelog b/ruby-opennebula-4.4/debian/changelog index 38966ec..a55e89b 100644 --- a/ruby-opennebula-4.4/debian/changelog +++ b/ruby-opennebula-4.4/debian/changelog @@ -1,5 +1,5 @@ -ruby-opennebula (4.4.0-1) UNRELEASED; urgency=medium +ruby-opennebula-4.4 (4.4.0-1) unstable; urgency=low - * Initial release (Closes: #nnnn) + * Initial release -- František Dvořák Wed, 12 Mar 2014 18:30:49 +0100 diff --git a/ruby-opennebula-4.4/debian/control b/ruby-opennebula-4.4/debian/control index 8b93418..41fa8cc 100644 --- a/ruby-opennebula-4.4/debian/control +++ b/ruby-opennebula-4.4/debian/control @@ -1,19 +1,29 @@ -Source: ruby-opennebula +Source: ruby-opennebula-4.4 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.4 +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 Homepage: http://opennebula.org XS-Ruby-Versions: all -Package: ruby-opennebula +Package: ruby-opennebula-4.4 Architecture: all XB-Ruby-Versions: ${ruby:Versions} -Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter +Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-json, ruby-nokogiri # nokogiri (>= 0), json (>= 0) -Description: OpenNebula Client API - Libraries needed to talk to OpenNebula +Provides: ruby-logstash-event +Conflicts: ruby-logstash-event +Description: OpenNebula Client API (OCA) + 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 provides the OpenNebula Cloud API (OCA) Ruby bindings. diff --git a/ruby-opennebula-4.4/debian/copyright b/ruby-opennebula-4.4/debian/copyright index 1c1e1f6..968c354 100644 --- a/ruby-opennebula-4.4/debian/copyright +++ b/ruby-opennebula-4.4/debian/copyright @@ -1,35 +1,33 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: opennebula -Source: FIXME +Upstream-Name: OpenNebula +Upstream-Contact: OpenNebula Project Leads (OpenNebula.org) +Source: http://dev.opennebula.org/projects/opennebula/repository Files: * -Copyright: - -License: GPL-2+ (FIXME) +Copyright: 2010-2013, C12G Labs S.L + 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs +License: Apache 2.0 Files: debian/* Copyright: 2014 František Dvořák -License: GPL-2+ (FIXME) +License: Apache 2.0 Comment: the Debian packaging is licensed under the same terms as the original package. -License: GPL-2+ (FIXME) - This program is free software; you can redistribute it - and/or modify it under the terms of the GNU General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later - version. +License: Apache 2.0 + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at . - This program 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 General Public License for more - details. + http://www.apache.org/licenses/LICENSE-2.0 . - You should have received a copy of the GNU General Public - License along with this package; if not, write to the Free - Software Foundation, Inc., 51 Franklin St, Fifth Floor, - Boston, MA 02110-1301 USA + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. . - On Debian systems, the full text of the GNU General Public - License version 2 can be found in the file - `/usr/share/common-licenses/GPL-2'. + On Debian systems, the full text of the Apache Software License version 2 can + be found in the file `/usr/share/common-licenses/Apache-2.0'. diff --git a/ruby-opennebula-4.4/debian/patches/rubygems.patch b/ruby-opennebula-4.4/debian/patches/rubygems.patch new file mode 100644 index 0000000..261faeb --- /dev/null +++ b/ruby-opennebula-4.4/debian/patches/rubygems.patch @@ -0,0 +1,26 @@ +diff --git a/lib/opennebula.rb b/lib/opennebula.rb +index 13e5b5b..12f46b8 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 b6d965f..2b4f759 100644 +--- a/lib/opennebula/ldap_auth.rb ++++ b/lib/opennebula/ldap_auth.rb +@@ -14,7 +14,6 @@ + # limitations under the License. # + # ---------------------------------------------------------------------------- # + +-require 'rubygems' + require 'net/ldap' + + module OpenNebula; end diff --git a/ruby-opennebula-4.4/debian/patches/series b/ruby-opennebula-4.4/debian/patches/series new file mode 100644 index 0000000..7c57a99 --- /dev/null +++ b/ruby-opennebula-4.4/debian/patches/series @@ -0,0 +1 @@ +rubygems.patch diff --git a/ruby-opennebula-4.4/debian/ruby-opennebula.docs b/ruby-opennebula-4.4/debian/ruby-opennebula.docs deleted file mode 100644 index d0ab95f..0000000 --- a/ruby-opennebula-4.4/debian/ruby-opennebula.docs +++ /dev/null @@ -1 +0,0 @@ -# FIXME: READMEs found -- 1.8.2.3