debian/0000755000000000000000000000000011753255476007205 5ustar debian/patches/0000755000000000000000000000000011753255476010634 5ustar debian/patches/0001-Remove-RubyGems-Depends.patch0000644000000000000000000000256611753255476016614 0ustar From: Youhei SASAKI Date: Fri, 11 May 2012 04:06:18 +0900 Subject: Remove RubyGems Depends Signed-off-by: Youhei SASAKI --- bin/bayes.rb | 8 +------- bin/summarize.rb | 8 +------- lib/classifier.rb | 3 +-- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/bin/bayes.rb b/bin/bayes.rb index f446b8c..5382d14 100755 --- a/bin/bayes.rb +++ b/bin/bayes.rb @@ -1,12 +1,6 @@ #!/usr/bin/env ruby -begin - require 'rubygems' - require 'classifier' -rescue - require 'classifier' -end - +require 'classifier' require 'madeleine' m = SnapshotMadeleine.new(File.expand_path("~/.bayes_data")) { diff --git a/bin/summarize.rb b/bin/summarize.rb index 4de6ef2..857f0fa 100755 --- a/bin/summarize.rb +++ b/bin/summarize.rb @@ -1,12 +1,6 @@ #!/usr/bin/env ruby -begin - require 'rubygems' - require 'classifier' -rescue - require 'classifier' -end - +require 'classifier' require 'open-uri' num = ARGV[1].to_i diff --git a/lib/classifier.rb b/lib/classifier.rb index 6c99960..5606bc0 100644 --- a/lib/classifier.rb +++ b/lib/classifier.rb @@ -24,7 +24,6 @@ # Copyright:: Copyright (c) 2005 Lucas Carlson # License:: LGPL -require 'rubygems' require 'classifier/extensions/string' require 'classifier/bayes' -require 'classifier/lsi' \ No newline at end of file +require 'classifier/lsi' debian/patches/series0000644000000000000000000000004311753255476012046 0ustar 0001-Remove-RubyGems-Depends.patch debian/compat0000644000000000000000000000000211753255476010403 0ustar 7 debian/ruby-tests.rb0000644000000000000000000000026211753255476011653 0ustar # -*- mode: ruby; coding: utf-8; -*- require 'gem2deb/rake/testtask' Gem2Deb::Rake::TestTask.new do |t| t.test_files = FileList['test/**/*_test.rb'] t.verbose = true end debian/watch0000644000000000000000000000015111753255476010233 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/classifier .*/classifier-(.*).tar.gz debian/changelog0000644000000000000000000000024411753255476011057 0ustar ruby-classifier (1.3.3-1) unstable; urgency=low * Initial release (Closes: #672503) -- Youhei SASAKI Thu, 10 May 2012 02:17:35 +0900 debian/ruby-classifier.examples0000644000000000000000000000000611753255476014044 0ustar bin/* debian/ruby-classifier.docs0000644000000000000000000000000711753255476013157 0ustar README debian/source/0000755000000000000000000000000011753255476010505 5ustar debian/source/format0000644000000000000000000000001411753255476011713 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000055011753255476011246 0ustar Debian Package of Ruby Classifier --------------------------------- In Debian, bayes.rb and summarieze.rb are installed at examples directory as follows: /usr/share/doc/ruby-classifier/examples/bayes.rb /usr/share/doc/ruby-classifier/examples/summarize.rb Thanks. -- Youhei SASAKI , Fri, 11 May 2012 17:43:02 +0900 debian/copyright0000644000000000000000000000421211753255476011137 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: classifier Source: http://classifier.rufy.com/ Files: * Copyright: 2010 Lucas Carlson 2010 David Fayram II 2010 Cameron McBride License: LGPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". Files: debian/* Copyright: 2012 Youhei SASAKI 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 X CONSORTIUM 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/rules0000755000000000000000000000023111753255476010261 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: dh_auto_install rm -fr $(CURDIR)/debian/ruby-classifier/usr/bin debian/control0000644000000000000000000000242211753255476010610 0ustar Source: ruby-classifier Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Youhei SASAKI DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.13~), rake, ruby-fast-stemmer Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-classifier.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-classifier.git;a=summary Homepage: http://classifier.rufy.com/ XS-Ruby-Versions: all Package: ruby-classifier Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-fast-stemmer Recommends: ruby-gsl Description: Ruby module to allow Bayesian and other types of classifications Classifier is a general module to allow Bayesian and other types of classifications. . This package provides Bayes classifier and Latent Semantic Indexer. Bayesian Classifiers are accurate, fast, and have modest memory requirements. Latent Semantic Indexing engines are not as fast or as small as Bayesian classifiers, but are more flexible, providing fast search and clustering detection as well as semantic analysis of the text that theoretically simulates human learning.