[DRE-commits] [ruby-memfs] 01/02: Initial Debian patch

Sebastien Badia sbadia-guest at moszumanska.debian.org
Thu Mar 3 14:58:54 UTC 2016


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

sbadia-guest pushed a commit to branch master
in repository ruby-memfs.

commit 5bafdbebd002e36d42fbb74a314cd7faf3a80ed2
Author: Sebastien Badia <seb at sebian.fr>
Date:   Thu Mar 3 10:54:58 2016 -0300

    Initial Debian patch
---
 debian/changelog                                 |  5 ++
 debian/compat                                    |  1 +
 debian/control                                   | 28 +++++++++++
 debian/copyright                                 | 52 ++++++++++++++++++++
 debian/patches/001_disable-homegroup-tests.patch | 62 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 debian/ruby-memfs.docs                           |  1 +
 debian/ruby-tests.rake                           |  5 ++
 debian/rules                                     |  6 +++
 debian/source/format                             |  1 +
 debian/watch                                     |  2 +
 11 files changed, 164 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ac7ebcf
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-memfs (0.5.0-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #nnnn)
+
+ -- Sebastien Badia <seb at sebian.fr>  Thu, 03 Mar 2016 10:19:33 -0300
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..664c0a6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: ruby-memfs
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Sebastien Badia <seb at sebian.fr>
+Build-Depends: debhelper (>= 9~),
+               gem2deb,
+               rake,
+               ruby-rspec,
+               ruby-coveralls
+Standards-Version: 3.9.7
+Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-memfs.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-memfs.git
+Homepage: http://github.com/simonc/memfs
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-memfs
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ruby | ruby-interpreter,
+         ${misc:Depends},
+         ${shlibs:Depends}
+Description: MemFs provides an in-memory fake file system that can be used for tests
+ MemFs is greatly inspired by the awesome FakeFs. The main goal of MemFs is to
+ be 100% compatible with the Ruby libraries like FileUtils.
+ .
+ MemFs is greatly inspired by the awesome FakeFs.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..95c5683
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,52 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: memfs
+Source: http://github.com/simonc/memfs
+
+Files: *
+Copyright: 2015 Simon Courtois <scourtois at cubyx.fr>
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Sebastien Badia <seb at sebian.fr>
+License: GPL-2+
+
+License: GPL-2+
+ 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.
+ .
+ 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.
+ .
+ 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
+ .
+ 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'.
+
+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/patches/001_disable-homegroup-tests.patch b/debian/patches/001_disable-homegroup-tests.patch
new file mode 100644
index 0000000..0f93861
--- /dev/null
+++ b/debian/patches/001_disable-homegroup-tests.patch
@@ -0,0 +1,62 @@
+Description: Temporary disable tests that requires homedir and rights checks
+Author: Sebastien Badia <seb at sebian.fr>
+Forwarded: not-needed
+Last-Update: 2016-03-03
+
+--- a/spec/memfs/dir_spec.rb
++++ b/spec/memfs/dir_spec.rb
+@@ -246,12 +246,12 @@ module MemFs
+     end
+ 
+     describe '.home' do
+-      it 'returns the home directory of the current user' do
++      xit 'returns the home directory of the current user' do
+         expect(described_class.home).to eq ENV['HOME']
+       end
+ 
+       context 'when a username is given' do
+-        it 'returns the home directory of the given user' do
++        xit 'returns the home directory of the given user' do
+           home_dir = described_class.home(ENV['USER'])
+           expect(home_dir).to eq ENV['HOME']
+         end
+--- a/spec/memfs/file/stat_spec.rb
++++ b/spec/memfs/file/stat_spec.rb
+@@ -440,7 +440,7 @@ module MemFs
+       end
+ 
+       context 'when the effective user group does not own of the file' do
+-        it 'returns false' do
++        xit 'returns false' do
+           _fs.chown(0, 0, '/test-file')
+           expect(file_stat.grpowned?).to be false
+         end
+@@ -469,7 +469,7 @@ module MemFs
+       end
+ 
+       context 'when the effective user does not own of the file' do
+-        it 'returns false' do
++        xit 'returns false' do
+           _fs.chown(0, 0, '/test-file')
+           expect(file_stat.owned?).to be false
+         end
+--- a/spec/memfs/file_spec.rb
++++ b/spec/memfs/file_spec.rb
+@@ -622,7 +622,7 @@ module MemFs
+         end
+ 
+         context 'and the effective user group does not own of the file' do
+-          it 'returns false' do
++          xit 'returns false' do
+             described_class.chown 0, 0, '/test-file'
+ 
+             grpowned = File.grpowned?('/test-file')
+@@ -906,7 +906,7 @@ module MemFs
+         end
+ 
+         context 'and the effective user does not own of the file' do
+-          it 'returns false' do
++          xit 'returns false' do
+             described_class.chown 0, 0, '/test-file'
+ 
+             owned = File.owned?('/test-file')
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..be3899d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001_disable-homegroup-tests.patch
diff --git a/debian/ruby-memfs.docs b/debian/ruby-memfs.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-memfs.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..cf1591e
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -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..3454d59
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
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..536f1d7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/memfs .*/memfs-(.*).tar.gz

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



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