Wed Aug 03 15:25:07 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
[rbot] / Rakefile
1 require 'rubygems'
2 require 'rake'
3 require 'rake/gempackagetask'
4
5 task :default => [:package]
6
7 spec = Gem::Specification.new do |s|
8   s.name = 'rbot'
9   s.version = '0.9.9'
10   s.summary = <<-EOF
11     A modular ruby IRC bot.
12   EOF
13   s.description = <<-EOF
14     A modular ruby IRC bot specifically designed for ease of extension via plugins.
15   EOF
16   s.requirements << 'Ruby, version 1.8.0 (or newer)'
17
18   #  s.files = Dir.glob("**/*").delete_if { |item| item.include?(".svn") }
19   s.files = FileList['lib/**/*.rb', 'bin/*', 'data/**/*', 'AUTHORS', 'COPYING', 'README', 'REQUIREMENTS', 'TODO', 'ChangeLog', 'INSTALL', 'rbot.gemspec', 'Usage_en.txt', 'setup.rb'].to_a
20   s.executables << 'rbot'
21
22   s.autorequire = 'rbot/ircbot'
23   s.has_rdoc = true
24   s.rdoc_options = ['--exclude', 'post-install.rb',
25   '--title', 'rbot API Documentation', '--main', 'README', 'README']
26
27   s.author = 'Tom Gilbert'
28   s.email = 'tom@linuxbrit.co.uk'
29   s.homepage = 'http://linuxbrit.co.uk/rbot/'
30   s.rubyforge_project = 'rbot'
31 end
32
33 Rake::GemPackageTask.new(spec) do |pkg|
34   pkg.need_zip = true
35   pkg.need_tar = true
36 end
37