debian/0000755000000000000000000000000012256115530007166 5ustar debian/ruby-libxml.docs0000644000000000000000000000001412133037757012311 0ustar README.rdoc debian/copyright0000644000000000000000000000325412152655442011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libxml-ruby Source: http://rubyforge.org/projects/libxml/ Files: * Copyright: © 2008-2009 Charlie Savage and contributors © 2002-2007 Sean Chittenden and contributors © 2001 Wai-Sun "Squidster" Chia License: MIT Files: debian/* Copyright: © 2004 Andres Salomon © 2005 Matej Vela © 2006-2010 Filipe Lautert © 2007-2010 Paul van Tilburg © 2009-2010 Ryan Niebur © 2011 Gunnar Wolf License: MIT License: MIT 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/rules0000755000000000000000000000074612207717110010253 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 export DH_RUBY_IGNORE_TESTS=ruby1.8 # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/source/0000755000000000000000000000000012133037757010476 5ustar debian/source/format0000644000000000000000000000001412133037757011704 0ustar 3.0 (quilt) debian/control0000644000000000000000000000231612256115471010577 0ustar Source: ruby-libxml Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Filipe Lautert , Paul van Tilburg , Ryan Niebur , Gunnar Wolf , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.0~), libxml2-dev, libxslt1-dev, zlib1g-dev Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-libxml.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-libxml.git;a=summary Homepage: http://xml4r.github.com/libxml-ruby XS-Ruby-Versions: all Package: ruby-libxml Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby Bindings for LibXML2 The Libxml-Ruby project provides Ruby language bindings for the GNOME Libxml2 XML toolkit. It is free software, released under the MIT License. Libxml-ruby's primary advantage over REXML is performance - if speed is your need, these are good libraries to consider, as demonstrated by the informal benchmark below. debian/ruby-tests.rb0000644000000000000000000000064112133037757011645 0ustar #!/usr/bin/ruby ### $LOAD_PATH << Dir.pwd + '/lib' << Dir.pwd + '/ext' instdir = 'debian/ruby-libxml' $LOAD_PATH.map {|path| '%s/%s/%s' % [Dir.pwd, instdir, path]}. select {|path| File.exist?(path)}. each {|path| $LOAD_PATH << path} #Dir.chdir('test') #Dir.open('.').select {|f| f=~/\.rb$/}.each do |f| # begin # require f # rescue # 'Error loading test: %s' % f # end #end require "test/test_suite.rb" debian/watch0000644000000000000000000000015312133037757010226 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/libxml-ruby .*/libxml-ruby-(.*).tar.gz debian/changelog0000644000000000000000000001463612256115530011052 0ustar ruby-libxml (2.7.0-2) unstable; urgency=medium * Team upload. * Bump Build-Depends for ruby2.0 support, drop ruby1.8 support * Update Standards-Version to 3.9.5 (no changes) -- Christian Hofstaedtler Mon, 23 Dec 2013 21:21:27 +0100 ruby-libxml (2.7.0-1) unstable; urgency=low * Imported Upstream version 2.7.0 + fix dereferencing pointer to incomplete type error (Closes: #713723) * debian/control: + use canonical URI in Vcs-* fields + bump Standards-Version to 3.9.4 (no changes needed) + drop transitional packages + add myself to Uploaders * debian/copyright: use DEP5 copyright-format/1.0 official URL for Format field * debian/rules: ignore test failures with ruby1.8 * debian/patches: + do not apply fix_test_under_1.9.1 (not needed) + refresh 0100_run_builtin_shell_command_ulimit_in_tests.patch + add 0200_do_not_overwrite_LDFLAGS.patch: do not overwrite system LDFLAGS -- Cédric Boutillier Mon, 19 Aug 2013 12:00:38 +0200 ruby-libxml (2.3.2-1) unstable; urgency=low * New upstream release -- Gunnar Wolf Tue, 27 Mar 2012 16:17:27 -0600 ruby-libxml (2.2.2-2) unstable; urgency=low * Stop ignoring the tests' results - Thanks to Cédric Boutillier for the patch -- Gunnar Wolf Mon, 28 Nov 2011 17:29:33 -0600 ruby-libxml (2.2.2-1) unstable; urgency=low * New upstream release * Added myself to uploaders * Repackaged using the gem2deb infrastructure; fixes FTBFS (Closes: #646652) -- Gunnar Wolf Wed, 23 Nov 2011 14:12:26 -0600 libxml-ruby (1.1.3-2) unstable; urgency=low * Upload including Ruby 1.9.1 support. * debian/control: - Bumped standards version to 3.8.4; no changes required. - Bumped ruby-pkg-tools build depend to >= 0.17. - Added a package entry for libxml-ruby1.9.1. - Added ruby1.9.1 and ruby1.9.1-dev to the build depends. -- Paul van Tilburg Sun, 14 Feb 2010 14:37:46 +0100 libxml-ruby (1.1.3-1) unstable; urgency=low [ Ryan Niebur ] * New upstream release [ Filipe Lautert ] * Revised and uploaded the package. -- Filipe Lautert Tue, 07 Apr 2009 21:33:09 -0300 libxml-ruby (1.1.2-1) unstable; urgency=low [ Ryan Niebur ] * New upstream release * add myself to uploaders * bump debhelper version/compat to 5 * Debian policy 3.8.1 * remove XS-Dm-Upload-Allowed field ... there are no DMs in Maintainer/Uploaders * change Section to ruby * stop using the simple-patchsys cdbs rules, there are no patches * add misc:Depends * differentiate the short descriptions * update copyright [ Filipe Lautert ] * Revised and uploaded the package. -- Filipe Lautert Sat, 21 Mar 2009 08:28:16 -0300 libxml-ruby (0.9.4-1) unstable; urgency=low * New upstream version. -- Filipe Lautert Sat, 29 Nov 2008 15:15:26 -0200 libxml-ruby (0.8.3-1) unstable; urgency=low * New upstream version (closes: #485738). -- Filipe Lautert Thu, 01 Aug 2008 13:07:41 -0300 libxml-ruby (0.5.2.0-3) unstable; urgency=low * Set section to "libs" instead of "interpreters". This is a library. -- Paul van Tilburg Sat, 05 Apr 2008 00:39:49 +0200 libxml-ruby (0.5.2.0-2) unstable; urgency=low * Fixed typo in the value of the XS-Dm-Upload-Allowed field. -- Paul van Tilburg Sat, 05 Apr 2008 00:01:17 +0200 libxml-ruby (0.5.2.0-1) unstable; urgency=low [ Filipe Lautert ] * New upstream version (closes: #443409). * Added 'Dm-Upload-Allowed: yes' field to debian/control file. [ Lucas Nussbaum ] * Use new Homepage dpkg header. [ Paul van Tilburg ] * Added Vcs-* fields. * Bumped standards version to 3.7.3; no changes required. -- Paul van Tilburg Sat, 08 Dec 2007 16:41:58 +0100 libxml-ruby (0.3.8.4-3) unstable; urgency=low * Added test before remove empty file, so package can be build twice in a row (closes: #424542). -- Filipe Lautert Thu, 17 May 2007 01:50:41 -0300 libxml-ruby (0.3.8.4-2) unstable; urgency=low [ Filipe Lautert ] * Updated debian/control and removed debian/control.in so it reflects the new way of describing maintainers and uploaders fields from the Pkg-Ruby-Extras Team. -- Filipe Lautert Mon, 16 Apr 2007 09:54:33 -0300 libxml-ruby (0.3.8.4-1) unstable; urgency=medium * Maintenance release that fixes a critical bug in attribute handling. -- Filipe Lautert Tue, 5 Dec 2006 08:24:22 -0200 libxml-ruby (0.3.8.2-1) unstable; urgency=medium * Synchonized with upstream version - this version closes many critical bugs in upstream code. * Removed silly comment from rules file. * Updated copyright file. -- Filipe Lautert Fri, 1 Dec 2006 15:13:54 -0200 libxml-ruby (0.3.8-1) unstable; urgency=low * Package adopted - maintenance changed to Debian/Ruby Extras team. Closes: #335698. * Converted debian/rules to cdbs. * Added remove command to debian/rules that removes empty test file resolving litian warning. * Conforms to Standards version 3.7.2. -- Filipe Lautert Tue, 7 Nov 2006 21:35:12 -0300 libxml-ruby (0.3.4-4) unstable; urgency=low * QA upload. * Add a libxml-ruby metapackage as recommended by Debian Ruby Policy. Closes: #282759. * Change section to interpreters. Closes: #260944. * debian/copyright: Update upstream URL. * debian/dirs: $(sitedir) already handled by the Makefile; remove. * debian/docs: README and TODO already handled by cdbs; remove. * debian/watch: Add. * Conforms to Standards version 3.6.2. -- Matej Vela Sun, 13 Nov 2005 17:38:06 +0100 libxml-ruby (0.3.4-3) unstable; urgency=low * Orphaning package, setting maintainer to QA. -- Andres Salomon Tue, 25 Oct 2005 01:44:32 -0400 libxml-ruby (0.3.4-2) unstable; urgency=low * Fix FTBFS due to unnecessary libm/atan check; thanks to Andreas Jochens (closes: #265475). * Fix gcc-4.0 FTBFS due to lvalue casts; thanks to Andreas Jochens (closes: #287452). -- Andres Salomon Wed, 29 Dec 2004 07:37:28 -0500 libxml-ruby (0.3.4-1) unstable; urgency=low * Initial release (closes: #228534). -- Andres Salomon Fri, 16 Jul 2004 22:12:41 -0400 debian/compat0000644000000000000000000000000212133037757010374 0ustar 7 debian/patches/0000755000000000000000000000000012207717110010613 5ustar debian/patches/0200_do_not_overwrite_LDFLAGS.patch0000644000000000000000000000164712207717110017031 0ustar Description: do not overwrite system LDFLAGS Author: Cédric Boutillier Origin: vendor Bug: https://github.com/xml4r/libxml-ruby/issues/74 Last-Update: 2013-08-20 --- a/ext/libxml/extconf.rb +++ b/ext/libxml/extconf.rb @@ -4,19 +4,17 @@ require 'mkmf' -#if defined?(CFLAGS) -# if CFLAGS.index(CONFIG['CCDLFLAGS']) -# $CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS'] -# else -# $CFLAGS = CFLAGS -# end -#else -# $CFLAGS = CONFIG['CFLAGS'] -#end -#$LDFLAGS = CONFIG['LDFLAGS'] -#$LDFLAGS = "-L/usr/local/lib" -#$LIBPATH.push(Config::CONFIG['libdir']) -$LDFLAGS = "-Lc:/mingw/local/lib" +if defined?(CFLAGS) + if CFLAGS.index(CONFIG['CCDLFLAGS']) + $CFLAGS = CFLAGS + ' ' + CONFIG['CCDLFLAGS'] + else + $CFLAGS = CFLAGS + end +else + $CFLAGS = CONFIG['CFLAGS'] +end +$LDFLAGS = CONFIG['LDFLAGS'] +$LIBPATH.push(Config::CONFIG['libdir']) def crash(str) printf(" extconf failure: %s\n", str) debian/patches/fix_test_under_1.9.10000644000000000000000000000140012133037757014313 0ustar Description: Add 'minitest/unit' to required files under 1.9.1 The test runs only when under 1.9.1, and it's missing a dependency. Author: Gunnar Wolf Last-update: 2012-03-27 Index: ruby-libxml/test/tc_encoding_sax.rb =================================================================== --- ruby-libxml.orig/test/tc_encoding_sax.rb 2012-03-27 16:16:59.000000000 -0600 +++ ruby-libxml/test/tc_encoding_sax.rb 2012-03-27 16:35:23.000000000 -0600 @@ -1,6 +1,7 @@ # encoding: UTF-8 require './test_helper' require 'test/unit' +require 'minitest/unit' class SaxEncodingCallbacks attr_reader :encoding @@ -112,4 +113,4 @@ parser.callbacks = SaxEncodingCallbacks.new parser.parse end -end \ No newline at end of file +end debian/patches/0100_run_builtin_shell_command_ulimit_in_tests.patch0000644000000000000000000000117512207717110023012 0ustar Description: run correctly the built-in command "ulimit" ulimit is a built-in shell command and cannot be simply called from ruby with backticks. Passing the command as a string to sh with the -c switch seems to be the correct way to do this. Author: Cédric Boutillier Last-Update:2013-08-19 --- a/test/tc_parser.rb +++ b/test/tc_parser.rb @@ -246,7 +246,7 @@ max_fd = if RUBY_PLATFORM.match(/mswin32|mingw/i) 500 else - (`ulimit -n`.chomp.to_i) + 1 + (`sh -c "ulimit -n"`.chomp.to_i) + 1 end file = File.join(File.dirname(__FILE__), 'model/rubynet.xml') debian/patches/series0000644000000000000000000000015712207717110012033 0ustar 0100_run_builtin_shell_command_ulimit_in_tests.patch #fix_test_under_1.9.1 0200_do_not_overwrite_LDFLAGS.patch