aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog63
-rw-r--r--debian/control30
-rw-r--r--debian/copyright34
-rw-r--r--debian/gbp.conf3
-rw-r--r--debian/patches/ruby3.0_compatibility.patch75
-rw-r--r--debian/patches/series1
-rw-r--r--debian/ruby-roo.docs1
-rw-r--r--debian/ruby-roo.examples1
-rw-r--r--debian/ruby-tests.rake5
-rwxr-xr-xdebian/rules7
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata7
-rw-r--r--debian/watch3
13 files changed, 231 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3afbc0b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,63 @@
+ruby-roo (2.8.3-2) unstable; urgency=medium
+
+ * d/p/ruby3.0_compatibility.patch:
+ - Grab two patches from upstream to fix compatibility with Ruby 3.0.
+ (Closes: #996371)
+ * d/u/metadata: Generate.
+ * d/control, d/copyright: Update my email address.
+ * d/control:
+ - Bump DH compat to 13.
+ - Rely on ${ruby:Depends} rather than listing everything explicitly.
+ * d/rules: Utilize --gem-install method.
+ * d/watch: Bump version to 4.
+ * Update Standards-Version to 4.6.0.
+
+ -- Unit 193 <unit193@debian.org> Mon, 01 Nov 2021 22:55:10 -0400
+
+ruby-roo (2.8.3-1) unstable; urgency=medium
+
+ * New upstream version 2.8.3
+ - Drop patch no longer needed.
+ * d/control: Update constraints on ruby-zip.
+ * Update Standards-Version to 4.5.0.
+
+ -- Unit 193 <unit193@ubuntu.com> Wed, 18 Mar 2020 00:25:33 -0400
+
+ruby-roo (2.8.2-2) unstable; urgency=medium
+
+ * d/control, d/p/allow-newer-rubyzip.patch:
+ - Drop upper constraint on rubyzip.
+ * d/control: Add Vcs-* fields.
+ * Update Standards-Version to 4.4.1.
+
+ -- Unit 193 <unit193@ubuntu.com> Wed, 20 Nov 2019 17:28:58 -0500
+
+ruby-roo (2.8.2-1) unstable; urgency=medium
+
+ * New upstream version 2.8.2
+ * d/copyright: Update debian/* copyright years.
+
+ -- Unit 193 <unit193@ubuntu.com> Fri, 01 Feb 2019 19:25:05 -0500
+
+ruby-roo (2.8.1-1) unstable; urgency=medium
+
+ * New upstream version 2.8.1
+
+ -- Unit 193 <unit193@ubuntu.com> Fri, 25 Jan 2019 21:59:47 -0500
+
+ruby-roo (2.8.0-1) unstable; urgency=medium
+
+ * New upstream version 2.8.0
+ * d/compat, d/control:
+ - Drop d/compat in favor of debhelper-compat, bump to 12.
+ * d/control: Set R³ to no.
+ * d/watch: Adjust the gemwatch URL to gemwatch.debian.net.
+ * Update Standards-Version to 4.3.0.
+
+ -- Unit 193 <unit193@ubuntu.com> Mon, 14 Jan 2019 01:51:44 -0500
+
+ruby-roo (2.7.1-1) unstable; urgency=medium
+
+ * Initial upload to Debian. (Closes: #864740)
+
+ -- Unit 193 <unit193@ubuntu.com> Mon, 03 Jul 2017 17:24:06 -0400
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..fe5e94e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: ruby-roo
+Section: ruby
+Priority: optional
+Maintainer: Unit 193 <unit193@debian.org>
+Build-Depends: debhelper-compat (= 13),
+ gem2deb,
+ rake,
+ ruby-nokogiri (>= 1),
+ ruby-rspec,
+ ruby-simplecov,
+ ruby-zip (>= 1.3),
+ ruby-zip (<< 3.0)
+Rules-Requires-Root: no
+Standards-Version: 4.6.0
+Homepage: https://github.com/roo-rb/roo
+Vcs-Browser: https://git.unit193.net/cgit/users/unit193/ruby-roo.git
+Vcs-Git: https://git.unit193.net/cgit/users/unit193/ruby-roo.git
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-roo
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${misc:Depends}, ${ruby:Depends}
+Description: can access the contents of various spreadsheet files
+ Roo can access the contents of various spreadsheet files. It can handle
+ * OpenOffice
+ * Excelx
+ * LibreOffice
+ * CSV
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c2242b7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: roo
+Source: https://github.com/roo-rb/roo
+
+Files: *
+Copyright: 2008-2014, Thomas Preymesser <ruby.ruby.ruby.roo@gmail.com>
+ 2014-2017, Ben Woosley <ben.woosley@gmail.com>
+ 2015-2017, Oleksandr Simonov <oleksandr@simonov.me>
+ 2015-2017, Steven Daniels <stevendaniels88@gmail.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2016-2021 Unit 193 <unit193@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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..5474c60
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+pristine-tar = True
+sign-tags = True
diff --git a/debian/patches/ruby3.0_compatibility.patch b/debian/patches/ruby3.0_compatibility.patch
new file mode 100644
index 0000000..c35dc0b
--- /dev/null
+++ b/debian/patches/ruby3.0_compatibility.patch
@@ -0,0 +1,75 @@
+From: taichi <taichi730@gmail.com>
+Subject: Grab two patches from upstream to fix compatibility with Ruby 3.0.
+ [PATCH] fixed warnings caused by keyword argument change
+ [PATCH] adapted for obsoletion of URI.encode method
+
+Origin: upstream
+Bug-Debian: https://bugs.debian.org/996371
+
+---
+ lib/roo/csv.rb | 27 +++++++++++++++++++++++----
+ lib/roo/spreadsheet.rb | 10 ++++++++--
+ 2 files changed, 31 insertions(+), 6 deletions(-)
+
+--- a/lib/roo/csv.rb 2021-10-30 21:50:24.101318627 -0400
++++ b/lib/roo/csv.rb 2021-10-30 21:50:24.089318711 -0400
+@@ -90,17 +90,36 @@
+ def each_row(options, &block)
+ if uri?(filename)
+ each_row_using_tempdir(options, &block)
+- elsif is_stream?(filename_or_stream)
+- ::CSV.new(filename_or_stream, options).each(&block)
+ else
+- ::CSV.foreach(filename, options, &block)
++ csv_foreach(filename_or_stream, options, &block)
+ end
+ end
+
+ def each_row_using_tempdir(options, &block)
+ ::Dir.mktmpdir(Roo::TEMP_PREFIX, ENV["ROO_TMP"]) do |tmpdir|
+ tmp_filename = download_uri(filename, tmpdir)
+- ::CSV.foreach(tmp_filename, options, &block)
++ csv_foreach(tmp_filename, options, &block)
++ end
++ end
++
++ # From Ruby 2.5, options argument of CSV.new/CSV.foreach is a keyword argument.
++ # Before Ruby 2.5, that argument is a Hash.
++ # Therefore, this workaround can be removed if Ruby 2.3 and 2.4 are dropped.
++ if RUBY_VERSION >= '2.5.0'
++ def csv_foreach(path_or_io, options, &block)
++ if is_stream?(path_or_io)
++ ::CSV.new(path_or_io, **options).each(&block)
++ else
++ ::CSV.foreach(path_or_io, **options, &block)
++ end
++ end
++ else
++ def csv_foreach(path_or_io, options, &block)
++ if is_stream?(path_or_io)
++ ::CSV.new(path_or_io, options).each(&block)
++ else
++ ::CSV.foreach(path_or_io, options, &block)
++ end
+ end
+ end
+
+--- a/lib/roo/spreadsheet.rb 2021-10-30 21:50:24.101318627 -0400
++++ b/lib/roo/spreadsheet.rb 2021-10-30 21:50:24.089318711 -0400
+@@ -24,8 +24,14 @@
+ options[:file_warning] = :ignore
+ extension.tr('.', '').downcase.to_sym
+ else
+- res = ::File.extname((path =~ /\A#{::URI::DEFAULT_PARSER.make_regexp}\z/) ? ::URI.parse(::URI.encode(path)).path : path)
+- res.tr('.', '').downcase.to_sym
++ parsed_path =
++ if path =~ /\A#{::URI::DEFAULT_PARSER.make_regexp}\z/
++ # path is 7th match
++ Regexp.last_match[7]
++ else
++ path
++ end
++ ::File.extname(parsed_path).tr('.', '').downcase.to_sym
+ end
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e2a6e04
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ruby3.0_compatibility.patch
diff --git a/debian/ruby-roo.docs b/debian/ruby-roo.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-roo.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-roo.examples b/debian/ruby-roo.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/ruby-roo.examples
@@ -0,0 +1 @@
+examples/*
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..4e91465
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
+export DH_RUBY = --gem-install
+
+%:
+ 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/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..02ddec7
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,7 @@
+---
+Archive: GitHub
+Bug-Database: https://github.com/roo-rb/roo/issues
+Bug-Submit: https://github.com/roo-rb/roo/issues
+Changelog: https://github.com/roo-rb/roo/tags
+Repository: https://github.com/roo-rb/roo.git
+Repository-Browse: https://github.com/roo-rb/roo
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9f200cf
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+# Track releases directly from Github as they contain the test files.
+https://github.com/roo-rb/roo/releases .*/v([\d\.]+)\.tar\.gz