debian/0000755000000000000000000000000012265520656007177 5ustar debian/rules0000755000000000000000000000070112265520656010255 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.9.1 ruby2.0 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 debian/watch0000644000000000000000000000014312265520656010226 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/raspell .*/raspell-(.*).tar.gz debian/source/0000755000000000000000000000000012265520656010477 5ustar debian/source/lintian-overrides0000644000000000000000000000030712265520656014060 0ustar raspell source: duplicate-short-description libraspell-ruby libraspell-ruby1.8 libraspell-ruby1.9.1 raspell source: duplicate-long-description libraspell-ruby libraspell-ruby1.8 libraspell-ruby1.9.1 debian/source/format0000644000000000000000000000001412265520656011705 0ustar 3.0 (quilt) debian/ruby-test-files.yaml0000644000000000000000000000003212265520656013114 0ustar --- - test/simple_test.rb debian/copyright0000644000000000000000000000236712265520656011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: raspell Source: https://github.com/evan/raspell Files: * Copyright: 2007-2010 Cloudburst, LLC 2005 Matthias Veit 2005 Biro Eszter License: GPL-2 Files: debian/* Copyright: 2011 Alex Pennace 2013 Cédric Boutillier License: GPL-2 Comment: the Debian packaging is licensed under the same terms as the original package. 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, version 2. . 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'. debian/control0000644000000000000000000000375512265520656010614 0ustar Source: raspell Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Alex Pennace , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.1~), libaspell-dev (>= 0.6~), aspell-en Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/raspell.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/raspell.git;a=summary Homepage: https://github.com/evan/raspell/ XS-Ruby-Versions: all Package: raspell Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Replaces: libraspell-ruby (<< 1.3-1~), libraspell-ruby1.8 (<< 1.3-1~), libraspell-ruby1.9.1 (<< 1.3-1~) Breaks: libraspell-ruby (<< 1.3-1~), libraspell-ruby1.8 (<< 1.3-1~), libraspell-ruby1.9.1 (<< 1.3-1~) Provides: libraspell-ruby, libraspell-ruby1.8, libraspell-ruby1.9.1 Recommends: aspell-dictionary Description: interface binding for the Aspell spelling checker raspell is an interface binding for the Aspell spelling checker written in Ruby. It allows one to use the Aspell spelling checker from Ruby source code. # Transitional packages Package: libraspell-ruby Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, raspell Description: Transitional package for raspell This is a transitional package to ease upgrades to the raspell package. It can safely be removed. Package: libraspell-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, raspell Description: Transitional package for raspell This is a transitional package to ease upgrades to the raspell package. It can safely be removed. Package: libraspell-ruby1.9.1 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, raspell Description: Transitional package for raspell This is a transitional package to ease upgrades to the raspell package. It can safely be removed. debian/patches/0000755000000000000000000000000012265520656010626 5ustar debian/patches/series0000644000000000000000000000004512265520656012042 0ustar format-security.patch fix_test.patch debian/patches/format-security.patch0000644000000000000000000000550612265520656015012 0ustar Description: fix format-security warning/errors Author: Cédric Boutillier Forwarded: no Last-Update: 2014-01-15 --- a/ext/raspell.c +++ b/ext/raspell.c @@ -73,7 +73,7 @@ */ static void check_for_error(AspellSpeller * speller) { if (aspell_speller_error(speller) != 0) { - rb_raise(cAspellError, aspell_speller_error_message(speller)); + rb_raise(cAspellError, "%s", aspell_speller_error_message(speller)); } } @@ -87,11 +87,11 @@ static void set_option(AspellConfig *config, char *key, char *value) { //printf("set option: %s = %s\n", key, value); if (aspell_config_replace(config, key, value) == 0) { - rb_raise(cAspellError, aspell_config_error_message(config)); + rb_raise(cAspellError, "%s", aspell_config_error_message(config)); } //check config: if (aspell_config_error(config) != 0) { - rb_raise(cAspellError, aspell_config_error_message(config)); + rb_raise(cAspellError, "%s", aspell_config_error_message(config)); } } @@ -132,7 +132,7 @@ AspellDocumentChecker * checker; ret = new_aspell_document_checker(speller); if (aspell_error(ret) != 0) - rb_raise(cAspellError, aspell_error_message(ret)); + rb_raise(cAspellError, "%s", aspell_error_message(ret)); checker = to_aspell_document_checker(ret); return checker; } @@ -214,7 +214,7 @@ if (aspell_error(ret) != 0) { tmp = strdup(aspell_error_message(ret)); delete_aspell_can_have_error(ret); - rb_raise(cAspellError, tmp); + rb_raise(cAspellError, "%s", tmp); } speller = to_aspell_speller(ret); @@ -253,7 +253,7 @@ if (aspell_error(ret) != 0) { const char *tmp = strdup(aspell_error_message(ret)); delete_aspell_can_have_error(ret); - rb_raise(cAspellError, tmp); + rb_raise(cAspellError, "%s", tmp); } speller = to_aspell_speller(ret); @@ -409,7 +409,7 @@ AspellConfig *config = aspell_speller_config(speller); VALUE result = rb_str_new2(aspell_config_retrieve(config, StringValuePtr(key))); if (aspell_config_error(config) != 0) { - rb_raise(cAspellError, aspell_config_error_message(config)); + rb_raise(cAspellError, "%s", aspell_config_error_message(config)); } return result; } @@ -433,7 +433,7 @@ if (aspell_config_error(config) != 0) { char *tmp = strdup(aspell_config_error_message(config)); delete_aspell_string_list(list); - rb_raise( cAspellError, tmp); + rb_raise( cAspellError, "%s", tmp); } //iterate over list @@ -480,7 +480,7 @@ else if (code == 0) result = Qfalse; else - rb_raise( cAspellError, aspell_speller_error_message(speller)); + rb_raise( cAspellError, "%s", aspell_speller_error_message(speller)); return result; } debian/patches/fix_test.patch0000644000000000000000000000064212265520656013476 0ustar Description: mention an explicit dictionary for the tests Author: Cédric Boutillier Forwarded: no Last-Update: 2014-01-15 --- a/test/simple_test.rb +++ b/test/simple_test.rb @@ -6,7 +6,7 @@ class TestSpell < Test::Unit::TestCase def setup - @aspell = Aspell.new + @aspell = Aspell.new("en") @text = ["Hiere is somthing wrong on the planett. And it was not the Apollo."] end debian/compat0000644000000000000000000000000212265520656010375 0ustar 7 debian/raspell.docs0000644000000000000000000000004512265520656011512 0ustar # FIXME: READMEs found # README.rdoc debian/changelog0000644000000000000000000000217112265520656011052 0ustar raspell (1.3-1) unstable; urgency=medium * Adption of the package by the Ruby Extras Maintainers team * New upstream version 1.3 * Improve description (Closes: #624242) * Transition to the new Ruby policy (Closes: #675114, #722374) * Make libraspell-ruby* transitional packages and provide a raspell binary package * Build-Depend on aspell-en and Recommends aspell-dictionary * Add patches to fix format-security issues and add an explicit dictionary for tests * debian/copyright: use copyright-format-1.0 * Add lintian-overrides about duplicated descriptions of transitional packages -- Cédric Boutillier Wed, 15 Jan 2014 14:01:19 +0100 raspell (1.2-2) unstable; urgency=low * Fix "FTBFS: ext/raspell.c:76:9: error: format not a string literal and no format arguments [-Werror=format-security]." Thanks to Lucas Nussbaum and Andreas Stuhrk. (Closes: #676077) -- Alex Pennace Sun, 17 Jun 2012 19:04:38 -0400 raspell (1.2-1) unstable; urgency=low * Initial release (Closes: #616189) -- Alex Pennace Wed, 02 Mar 2011 21:54:43 -0500