[DRE-commits] [vagrant-vsphere] 01/01: Initial commit

Dmitry Smirnov onlyjob at moszumanska.debian.org
Mon Sep 12 07:07:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

onlyjob pushed a commit to branch master
in repository vagrant-vsphere.

commit aec35d8 (HEAD, master)
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date:   Mon Sep 12 06:28:35 2016

    Initial commit
---
 debian/changelog                     |  5 +++++
 debian/clean                         |  3 +++
 debian/compat                        |  1 +
 debian/control                       | 36 ++++++++++++++++++++++++++++++++++++
 debian/copyright                     | 31 +++++++++++++++++++++++++++++++
 debian/docs                          |  1 +
 debian/gbp.conf                      | 11 +++++++++++
 debian/install                       |  1 +
 debian/patches/bundler.patch         | 13 +++++++++++++
 debian/patches/disable-rubocop.patch | 17 +++++++++++++++++
 debian/patches/locales.patch         | 24 ++++++++++++++++++++++++
 debian/patches/nogit.patch           | 31 +++++++++++++++++++++++++++++++
 debian/patches/series                |  4 ++++
 debian/ruby-tests.rake.FIXME         |  5 +++++
 debian/rules                         | 10 ++++++++++
 debian/source/format                 |  1 +
 debian/watch                         |  6 ++++++
 17 files changed, 200 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3e8f16c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+vagrant-vsphere (1.10.0-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #nnnn)
+
+ -- Dmitry Smirnov <onlyjob at debian.org>  Mon, 08 Aug 2016 14:21:52 +1000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..156df47
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+## Generated files:
+action_provision
+synced_folders
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..f298e77
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: vagrant-vsphere
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Dmitry Smirnov <onlyjob at debian.org>
+Build-Depends: debhelper (>= 9~)
+    ,gem2deb (>= 0.30~)
+    ,rake
+    ,ruby-bundler
+    ,ruby-i18n (<< 0.8.0)
+    ,ruby-i18n (>= 0.6.4)
+    ,ruby-nokogiri (>= 1.5)
+    ,ruby-rbvmomi (>= 1.8.2)
+    ,ruby-rspec (>= 3.4~)
+    ,vagrant (>= 1.8.5~)
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/vagrant-vsphere.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/vagrant-vsphere.git
+Homepage: https://github.com/nsidc/vagrant-vsphere
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: vagrant-vsphere
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ruby | ruby-interpreter, ${misc:Depends}, ${shlibs:Depends}
+    ,ruby-i18n (<< 0.8.0)
+    ,ruby-i18n (>= 0.6.4)
+    ,ruby-nokogiri (>= 1.5)
+    ,ruby-rbvmomi (>= 1.8.2)
+    ,vagrant (>= 1.8.5~)
+Enhances: vagrant
+Description: VMWare vSphere provider for Vagrant
+ vSphere provider to Vagrant, allowing Vagrant to control and provision
+ machines using VMware. New machines are created from virtual machines or
+ templates which must be configured prior to using this provider.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ed4f7bd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: vagrant-vsphere
+Source: https://github.com/nsidc/vagrant-vsphere
+
+Files: *
+Copyright: 2013-2015 Regents of the University of Colorado
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Dmitry Smirnov <onlyjob at debian.org>
+License: Expat
+
+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/docs b/debian/docs
new file mode 100644
index 0000000..ab1a32b
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README*
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..433de42
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,11 @@
+[buildpackage]
+overlay = True
+export-dir = ../build-area/
+tarball-dir = ../
+
+[dch]
+id-length    = 0
+
+[import-orig]
+pristine-tar = True
+merge        = False
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..4a0704a
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+locales   /usr/share/vagrant-vsphere/
diff --git a/debian/patches/bundler.patch b/debian/patches/bundler.patch
new file mode 100644
index 0000000..2056683
--- /dev/null
+++ b/debian/patches/bundler.patch
@@ -0,0 +1,13 @@
+Last-Update: 2016-09-06
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at debian.org>
+Description: fix FTBFS.
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,4 +1,5 @@
++require 'bundler'
+ require 'rbvmomi'
+ require 'pathname'
+ require 'vSphere/errors'
+ require 'vSphere/action'
diff --git a/debian/patches/disable-rubocop.patch b/debian/patches/disable-rubocop.patch
new file mode 100644
index 0000000..87be4db
--- /dev/null
+++ b/debian/patches/disable-rubocop.patch
@@ -0,0 +1,17 @@
+Last-Update: 2016-09-06
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at debian.org>
+Description: ruby-rubocop is not available yet; disable...
+
+--- a/vSphere.gemspec
++++ b/vSphere.gemspec
+@@ -20,9 +20,8 @@
+   s.add_development_dependency 'rake'
+   s.add_development_dependency 'rspec-core'
+   s.add_development_dependency 'rspec-expectations'
+   s.add_development_dependency 'rspec-mocks'
+-  s.add_development_dependency 'rubocop', '~> 0.32.1'
+ 
+   s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
+   s.executables = s.files.grep(/^bin\//) { |f| File.basename(f) }
+   s.test_files = s.files.grep(/^(test|spec|features)\//)
diff --git a/debian/patches/locales.patch b/debian/patches/locales.patch
new file mode 100644
index 0000000..6c924e3
--- /dev/null
+++ b/debian/patches/locales.patch
@@ -0,0 +1,24 @@
+Last-Update: 2016-09-12
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at debian.org>
+Description: fix run-time error
+~~~~
+`vagrant status`
+ /usr/lib/ruby/vendor_ruby/i18n/backend/base.rb:184:in `rescue in load_yml':
+ can not load translations from /usr/lib/ruby/locales/en.yml: #<Errno::ENOENT:
+ No such file or directory @ rb_sysopen - /usr/lib/ruby/locales/en.yml> (I18n::InvalidLocaleData)
+~~~~
+
+--- a/lib/vSphere/plugin.rb
++++ b/lib/vSphere/plugin.rb
+@@ -45,9 +45,9 @@
+       end
+       # rubocop:enable IndentationWidth
+ 
+       def self.setup_i18n
+-        I18n.load_path << File.expand_path('locales/en.yml', VSphere.source_root)
++        I18n.load_path << '/usr/share/vagrant-vsphere/locales/en.yml'
+         I18n.reload!
+       end
+     end
+   end
diff --git a/debian/patches/nogit.patch b/debian/patches/nogit.patch
new file mode 100644
index 0000000..fda81bc
--- /dev/null
+++ b/debian/patches/nogit.patch
@@ -0,0 +1,31 @@
+Last-Update: 2016-09-06
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at debian.org>
+Description: fix FTBFS.
+
+--- a/Gemfile
++++ b/Gemfile
+@@ -7,9 +7,9 @@
+   # gem dependency because we expect to be installed within the
+   # Vagrant environment itself using `vagrant plugin`.
+ 
+   ruby '2.0.0'
+-  gem 'vagrant', git: 'git://github.com/mitchellh/vagrant.git', tag: 'v1.8.1'
++  gem 'vagrant'
+ end
+ 
+ group :plugins do
+   gem 'vagrant-vsphere', path: '.'
+--- a/vSphere.gemspec
++++ b/vSphere.gemspec
+@@ -21,9 +21,9 @@
+   s.add_development_dependency 'rspec-core'
+   s.add_development_dependency 'rspec-expectations'
+   s.add_development_dependency 'rspec-mocks'
+ 
+-  s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
++# s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
+   s.executables = s.files.grep(/^bin\//) { |f| File.basename(f) }
+   s.test_files = s.files.grep(/^(test|spec|features)\//)
+   s.require_path = 'lib'
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..23e3574
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+bundler.patch
+disable-rubocop.patch
+locales.patch
+nogit.patch
diff --git a/debian/ruby-tests.rake.FIXME b/debian/ruby-tests.rake.FIXME
new file mode 100644
index 0000000..cf1591e
--- /dev/null
+++ b/debian/ruby-tests.rake.FIXME
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/spectask'
+
+Gem2Deb::Rake::RSpecTask.new do |spec|
+  spec.pattern = './spec/**/*_spec.rb'
+end
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..43f0643
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_vagrant_plugin
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/watch b/debian/watch
new file mode 100644
index 0000000..91f429b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+
+ https://github.com/nsidc/vagrant-vsphere/releases \
+ .*/archive/v?(.*).tar.gz
+
+# http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/vagrant-vsphere .*/vagrant-vsphere-(.*).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-vsphere.git



More information about the Pkg-ruby-extras-commits mailing list