require "rubygems"
require "rake"
require "rake/gempackagetask"

# This is to be used to generate the prawn meta-gem only.  You probably want to
# build prawn-core unless you know exactly what you are doing, so do rake gem
# instead.

spec = Gem::Specification.new do |spec|
  spec.name = "prawn"
  spec.version = "0.7.1"
  spec.platform = Gem::Platform::RUBY
  spec.summary = "A fast and nimble PDF generator for Ruby"
  spec.add_dependency('prawn-core', '>= 0.7.1', '< 0.8')
  spec.add_dependency('prawn-layout', '>= 0.7.1', '< 0.8')
  spec.add_dependency('prawn-security', '>= 0.7.1', '< 0.8')
  spec.files = Dir.glob("lib/*")
  spec.require_path = "lib"
  spec.author = "Gregory Brown"
  spec.email = "  gregory.t.brown@gmail.com"
  spec.rubyforge_project = "prawn"
  spec.homepage = "http://prawn.majesticseacreature.com"
  spec.description = "Prawn is a fast, tiny, and nimble PDF generator for Ruby"
  spec.post_install_message = %{
  Welcome to Prawn, the best pure-Ruby PDF solution ever!
  This is version 0.7
   
  For those coming from Prawn 0.6 or earlier, note that this release has
  some API breaking changes as well as many new features.  *** You'll want 
  to know about these changes, as we will no longer be supporting
  Prawn 0.6 or any earlier version of Prawn***

  For details on what has changed, see:
    http://wiki.github.com/sandal/prawn/changelog

  If you have questions, contact us at:
    http://groups.google.com/group/prawn-ruby

  To submit a patch or report a bug, select the appropriate package below: 
    http://github.com/sandal/prawn
    http://github.com/sandal/prawn-layout
    http://github.com/madriska/prawn-security

  Prawn is meant for experienced Ruby hackers, so if you are new to Ruby, you
  might want to wait until you've had some practice with the language before
  expecting Prawn to work for you.  Things may change after 1.0, but for now
  if you're not ready to read source code and patch bugs or missing features 
  yourself (with our help), Prawn might not be the right fit.

  But if you know what you're getting yourself into, enjoy!
  }
end

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