debian/0000755000000000000000000000000011772327255007201 5ustar debian/rules0000755000000000000000000000126711727500761010262 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 %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: dh_auto_install rm debian/ruby-pdf-reader/usr/bin/* rmdir debian/ruby-pdf-reader/usr/bin override_dh_installexamples: dh_installexamples chmod 755 debian/ruby-pdf-reader/usr/share/doc/ruby-pdf-reader/examples/*.rb debian/watch0000644000000000000000000000017711727645061010235 0ustar version=3 opts="uversionmangle=s/.(alpha|beta|rc)/~$1/" \ https://github.com/yob/pdf-reader/tags .*/pdf-reader/tarball/v(.*) debian/source/0000755000000000000000000000000011727500761010474 5ustar debian/source/format0000644000000000000000000000001411727500761011702 0ustar 3.0 (quilt) debian/ruby-pdf-reader.docs0000644000000000000000000000001411727500761013031 0ustar README.rdoc debian/ruby-pdf-reader.examples0000644000000000000000000000001311727500761013716 0ustar examples/* debian/copyright0000644000000000000000000000267411727500761011140 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Name: pdf-reader Source: https://github.com/yob/pdf-reader Files: * Copyright: Copyright 2006, 2009 Peter Jones Copyright 2008, 2009, 2010 James Healy License: Expat Files: debian/* Copyright: Copyright 2011 Cédric Boutillier 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. debian/control0000644000000000000000000000242111772327255010603 0ustar Source: ruby-pdf-reader Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec (>= 2.1), ruby-ascii85 (>= 1.0.0), ruby-rc4 Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-pdf-reader.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-pdf-reader.git;a=summary Homepage: http://github.com/yob/pdf-reader XS-Ruby-Versions: all Package: ruby-pdf-reader Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-ascii85 (>= 1.0.0), ruby-rc4 Suggests: ruby-rspec, ruby-prawn Description: Ruby library for accessing the content of PDF files The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe. It provides programmatic access to the contents of a PDF file with a high degree of flexibility. . This is primarily a low-level library that should be used as the foundation for higher level functionality. There are a few exceptions to support very common use cases like extracting text from a page. debian/patches/0000755000000000000000000000000011727645061010626 5ustar debian/patches/0004-spec_fix_requires.patch0000644000000000000000000000071311727500761015745 0ustar Description: fix requires in spec/ Disable rubygems and bundler stuff Add requirement on rspec Author: Cédric Boutillier Last-Update: 2011-09-06 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,9 +1,10 @@ # coding: utf-8 -require "rubygems" -require "bundler" -Bundler.setup +#require "rubygems" +#require "bundler" +#Bundler.setup +require 'rspec' require 'pdf/reader' require 'timeout' require 'singleton' debian/patches/series0000644000000000000000000000013311727645061012040 0ustar 0002-examples_rubygems.patch 0004-spec_fix_requires.patch 0006-spec_add_require_yaml.patch debian/patches/0006-spec_add_require_yaml.patch0000644000000000000000000000065111727645061016554 0ustar Description: Add a missing requirement on yaml to run integrity_spec.rb Author: Cédric Boutillier Bug: https://github.com/yob/pdf-reader/issues/49 Last-Update: 2012-02-23 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,6 +9,7 @@ require 'timeout' require 'singleton' require 'digest/md5' +require 'yaml' # Requires supporting ruby files with custom matchers and macros, etc, debian/patches/0002-examples_rubygems.patch0000644000000000000000000000353611727645061015770 0ustar Description: disable rubygems and $LOAD_PATH override in examples Author: Cédric Boutillier Last-Update: 2011-09-06 --- a/examples/callbacks.rb +++ b/examples/callbacks.rb @@ -6,7 +6,6 @@ # WARNING: this will generate a *lot* of output, so you probably want to pipe # it through less or to a text file. -require 'rubygems' require 'pdf/reader' receiver = PDF::Reader::RegisterReceiver.new --- a/examples/extract_bates.rb +++ b/examples/extract_bates.rb @@ -13,7 +13,6 @@ # As a fall back, you can use a regular expression to look for words # that match the numbers you expect in the page content. -require 'rubygems' require 'pdf/reader' class BatesReceiver --- a/examples/metadata.rb +++ b/examples/metadata.rb @@ -3,7 +3,6 @@ # Extract metadata only -require 'rubygems' require 'pdf/reader' filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cross_ref_stream.pdf" --- a/examples/rspec.rb +++ b/examples/rspec.rb @@ -5,7 +5,6 @@ # # USAGE: rspec -c examples/rspec.rb -require 'rubygems' require 'pdf/reader' require 'rspec' require 'prawn' --- a/examples/text.rb +++ b/examples/text.rb @@ -3,7 +3,6 @@ # Extract all text from a single PDF -require 'rubygems' require 'pdf/reader' filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cairo-unicode.pdf" --- a/examples/version.rb +++ b/examples/version.rb @@ -3,7 +3,6 @@ # Determine the PDF version of a file -require 'rubygems' require 'pdf/reader' filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cairo-basic.pdf" --- a/examples/page_count.rb +++ b/examples/page_count.rb @@ -3,7 +3,6 @@ # A simple app to count the number of pages in a PDF File. -require 'rubygems' require 'pdf/reader' filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cross_ref_stream.pdf" debian/compat0000644000000000000000000000000211727500761010372 0ustar 7 debian/changelog0000644000000000000000000000254511772327255011061 0ustar ruby-pdf-reader (1.1.1-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Cédric Boutillier Tue, 26 Jun 2012 14:44:29 +0200 ruby-pdf-reader (1.1.1-1) unstable; urgency=low * New upstream version -- Cédric Boutillier Fri, 11 May 2012 00:18:40 +0200 ruby-pdf-reader (1.1.0-1) unstable; urgency=low * New upstream version -- Cédric Boutillier Thu, 29 Mar 2012 16:44:57 +0200 ruby-pdf-reader (1.0.0-2) unstable; urgency=low * Added missing dependency on ruby-rc4 (Closes: #665266) -- Gunnar Wolf Tue, 27 Mar 2012 17:04:58 -0600 ruby-pdf-reader (1.0.0-1) unstable; urgency=low * New upstream version * Add dependency on ruby-rc4 * Drop 0003-examples_fix_shebang.patch and 0005_fix_rspec_example.patch + not needed anymore * Add 0006-spec_add_require_yaml.patch + solves missing dependency on yaml to run spec/integration_spec.rb * Bumps Standards-Version to 3.9.3 (no change needed) * Change debian/watch to point directly to github.com -- Cédric Boutillier Thu, 23 Feb 2012 16:35:50 +0100 ruby-pdf-reader (0.10.1-1) unstable; urgency=low * Initial release (Closes: #640670) -- Cédric Boutillier Wed, 07 Sep 2011 09:11:53 +0200 debian/ruby-tests.rb0000644000000000000000000000011011727645061011635 0ustar require "rspec/autorun" Dir['spec/**/*_spec.rb'].each { |f| require f }