debian/0000755000000000000000000000000012246724736007203 5ustar debian/rules0000755000000000000000000000122312230331327010240 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec BUILDDIR=./debian/ruby-ole %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: dh_auto_install # Provided binary `oletool' should rather be shipped as an example # @see $(CURDIR)/debian/ruby-ole.examples rm -rf $(BUILDDIR)/usr/bin debian/watch0000644000000000000000000000014511635725536010234 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ruby-ole .*/ruby-ole-(.*).tar.gz debian/source/0000755000000000000000000000000011734552175010500 5ustar debian/source/format0000644000000000000000000000001411635725536011711 0ustar 3.0 (quilt) debian/ruby-ole.examples0000644000000000000000000000001412230331327012453 0ustar bin/oletool debian/ruby-test-files.yaml0000644000000000000000000000030411635725536013122 0ustar --- - test/test_property_set.rb - test/test_storage.rb - test/test_mbat.rb - test/test_meta_data.rb - test/test_support.rb - test/test_types.rb - test/test_ranges_io.rb - test/test_filesystem.rb debian/copyright0000644000000000000000000000352012160614612011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Ruby-ole Upstream-Contact: Charles Lowe Source: http://code.google.com/p/ruby-ole/ Files: * Copyright: Copyright © 2007-2010 Charles Lowe License: MIT-X Files: debian/* Copyright: Copyright © 2009-2011, Gunnar Wolf License: GPL-3+ License: GPL-3+ 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; version 3 or -at your option- any later version. . On Debian systems, the full text of the GNU General Public License version 3x can be found in the file `/usr/share/common-licenses/GPL-3'. License: MIT-X Copyright (c) 2007-2010 Charles Lowe . 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. debian/control0000644000000000000000000000220412246724736010604 0ustar Source: ruby-ole Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Gunnar Wolf , Ryan Niebur , Youhei SASAKI Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.2) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-ole.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-ole.git;a=summary Homepage: http://code.google.com/p/ruby-ole XS-Ruby-Versions: all Package: ruby-ole Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby library for read/write access for OLE compound documents Ruby-ole is a library for read/write access to OLE2 structured storage files, such as those produced by Microsoft Office, eg *.doc, *.msg etc. . It provides a simple and easy to use API, supporting read and write streaming, by providing transparent access to the "files" within OLE documents as IO-like objects, supporting all the expected operations. debian/ruby-ole.docs0000644000000000000000000000000711635725536011610 0ustar README debian/patches/0000755000000000000000000000000012230331327010611 5ustar debian/patches/dont_use_deprecated_new00000644000000000000000000000254611706454360015506 0ustar Author: Gunnar Wolf Origin: vendor Bug: http://bugs.debian.org/652752 Forwarded: no Last-Update: 2012-01-16 Description: Fix FTBFS due to a deprecated method call FileTime#new overrides DateTime#new by using its faster creator new0 (previously called new!). That method no longer exists under Ruby 1.9.x (i.e. see http://bugs.ruby-lang.org/issues/4776), so we revert to calling the super function when they are not defined. Index: ruby-ole/lib/ole/types/base.rb =================================================================== --- ruby-ole.orig/lib/ole/types/base.rb 2012-01-15 12:52:38.000000000 -0600 +++ ruby-ole/lib/ole/types/base.rb 2012-01-15 23:58:16.000000000 -0600 @@ -60,8 +60,14 @@ class FileTime < DateTime SIZE = 8 - # DateTime.new is slow... faster version for FileTime + # DateTime.new is slow... If we are running + # under Ruby 1.8, we can set up a faster + # version for FileTime. + # Ruby 1.9.x no longer offers the new0 / new! + # interface, so we have to use the version from + # DateTime. def self.new year, month, day, hour=0, min=0, sec=0, usec=0 + return super unless respond_to?(:new!) or respond_to?(:new0) # DateTime will remove leap and leap-leap seconds sec = 59 if sec > 59 if month <= 2 debian/patches/series0000644000000000000000000000005112230331327012022 0ustar # 0001-Move-provides.yaml-location.patch debian/patches/0001-Move-provides.yaml-location.patch0000644000000000000000000000300311734552175017530 0ustar From: Debian Ruby Extras Maintainers Date: Mon, 26 Mar 2012 00:20:54 +0900 Subject: Add search path of "provids.yaml" Signed-off-by: Youhei SASAKI Description: Add search path of "provids.yaml" Add search path of "provids.yaml" for Debian package. Origin: vendor Forwarded: not-needed Last-Update: 2012-03-26 --- lib/ole/types/property_set.rb | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/lib/ole/types/property_set.rb b/lib/ole/types/property_set.rb index ce8662d..e619388 100644 --- a/lib/ole/types/property_set.rb +++ b/lib/ole/types/property_set.rb @@ -24,7 +24,13 @@ module Ole } # define a smattering of the property set guids. - DATA = YAML.load_file(File.dirname(__FILE__) + '/../../../data/propids.yaml'). + propids = [ '/usr/share/ruby-ole/propids.yaml', + File.dirname(__FILE__) + '/../../../../../share/ruby-ole/data/propids.yaml', + File.dirname(__FILE__) + '/../../../data/propids.yaml' + ].select { |filepath| + File.exists?(filepath) }.first + raise Exception, 'propids.yaml file could not be found' if propids.nil? + DATA = YAML.load_file(propids). inject({}) { |hash, (key, value)| hash.update Clsid.parse(key) => value } # create an inverted map of names to guid/key pairs debian/compat0000644000000000000000000000000211635725536010401 0ustar 7 debian/changelog0000644000000000000000000001061512246724736011060 0ustar ruby-ole (1.2.11.7-2) unstable; urgency=low * Team upload. * d/control: - removed transitional packages - bumped standards version to 3.9.5 (no changes needed) - removed version dependency of ruby1.8, changed to ruby - wrap-sort Uploaders -- Jonas Genannt Sat, 30 Nov 2013 20:39:39 +0100 ruby-ole (1.2.11.7-1) unstable; urgency=low [ Cédric Boutillier ] * debian/control: remove obsolete DM-Upload-Allowed flag * use canonical URI in Vcs-* fields * debian/copyright: use DEP5 copyright-format/1.0 official URL for Format field [ Youhei SASAKI ] * Imported Upstream version 1.2.11.7 * Bump Standard Version: 3.9.4 * Update debian/rules: - simplify override_dh_auto_install + add ruby-ole.examples * Drop obsolete patch -- Youhei SASAKI Tue, 06 Aug 2013 00:14:52 +0900 ruby-ole (1.2.11.3-1) unstable; urgency=low * Imported Upstream version 1.2.11.3 * Bump Standard Version: 3.9.3 * Unapply patches after build * Drop patch: dont_use_deprecated_new0 - merge upstream * Update patch: Add DEP-3 header -- Youhei SASAKI Mon, 26 Mar 2012 00:29:50 +0900 ruby-ole (1.2.11.2-1) unstable; urgency=low * New upstream release: 1.2.11.2 * Add me to Uploaders -- Youhei SASAKI Sun, 22 Jan 2012 05:03:29 +0900 ruby-ole (1.2.11.1-6) unstable; urgency=low * Transitional packages should be oldlibs/extra as requested by lintian * Fix FTBFS due to a call to a no-longer-provided interface (DateTime#new!) under Ruby 1.9.1 (Closes: #652752) -- Gunnar Wolf Mon, 16 Jan 2012 00:33:27 -0600 ruby-ole (1.2.11.1-5) unstable; urgency=low [Antonio Terceiro] * Team upload (not a NMU). * Replace Conflicts: with Breaks: in debian/control [Youhei SASAKI] * Fix FTBFS: (Closes: #634449) - debian/patches/move_propids_location: fix filepath - debian/rules: running "dh_install data/*" before dh_ruby --install -- Youhei SASAKI Wed, 27 Jul 2011 16:17:40 +0900 ruby-ole (1.2.11.1-4) unstable; urgency=low * Repackaged with the gem2deb packaging infrastructure -- Gunnar Wolf Mon, 16 May 2011 09:50:57 -0500 libole-ruby (1.2.11.1-3) unstable; urgency=low * Uff.. It's quite embarassing to admit my upload targetted to unstable was... sent to experimental :-P -- Gunnar Wolf Wed, 09 Feb 2011 13:41:13 -0600 libole-ruby (1.2.11.1-2) experimental; urgency=low * Squeeze freeze is over - Reupload, targetting at unstable instead of experimental -- Gunnar Wolf Tue, 08 Feb 2011 20:58:03 -0600 libole-ruby (1.2.11.1-1) experimental; urgency=low * New upstream release * Targetting experimental in order not to interfere with Squeeze's freeze * Standards-version 3.8.4→3.9.1.0 (no changes needed) -- Gunnar Wolf Wed, 24 Nov 2010 09:37:51 -0600 libole-ruby (1.2.9-5) UNRELEASED; urgency=low * debian/watch: updated for the Google Code webpage changes. -- Paul van Tilburg Sun, 16 May 2010 12:03:43 +0200 libole-ruby (1.2.9-4) unstable; urgency=low * Port the package to Ruby 1.9.1 (Closes: #569867) * Standards-version 3.8.3→3.8.4 (no changes needed) * Switched to 3.0 (quilt) source format; dropped build-dependency on quilt * Added DEP3 headers to move_propids_location patch -- Gunnar Wolf Mon, 15 Feb 2010 17:08:40 -0600 libole-ruby (1.2.9-3) unstable; urgency=low * rubygems1.9 was renamed to rubygems1.9.1, update dependencies (Closes: #550365) * update my email address -- Ryan Niebur Mon, 19 Oct 2009 17:20:06 -0700 libole-ruby (1.2.9-2) unstable; urgency=low * Debian Policy 3.8.3 * add README.source * Add myself to Uploaders * add build dep on ruby1.9 (Closes: #543040) -- Ryan Niebur Sun, 23 Aug 2009 11:25:13 -0700 libole-ruby (1.2.9-1) unstable; urgency=low * New upstream release * Create a binary package for Ruby 1.9 as well * Standards-version → 3.8.2 (no changes needed) * Oletool has been moved to become an example, not a regular executable -- Gunnar Wolf Tue, 21 Jul 2009 18:55:43 +0200 libole-ruby (1.2.8.2-1) unstable; urgency=low * Initial upload (Closes: #525026) -- Gunnar Wolf Tue, 21 Apr 2009 13:24:41 -0500