require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'

spec = Gem::Specification.new do |s|
    s.platform  =   Gem::Platform::RUBY
    s.name      =   "@PACKAGE@"
    s.version   =   "@VERSION@"
    s.author    =   "Rudi Cilibrasi"
    s.rubyforge_project = "complearn"
    s.email     =   "cilibrar@cilibrar.com"
    s.homepage  =   "http://complearn.org/"
    s.summary   =   "Machine learning through data compression scientific library."
    s.files     =   FileList['lib/*.rb','lib/**/*.rb','tests/**/*.rb'].to_a
    s.require_path  =   "lib"
    s.test_files = Dir.glob('tests/*.rb')
    s.has_rdoc  =   false
    s.extra_rdoc_files  =   ["README"]
end

Rake::GemPackageTask.new(spec) do |pkg|
    pkg.need_tar = true
end

task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
    puts "generated latest version"
end
