define (Gem::PackageTask)

    # File lib/rubygems/package_task.rb, line 98
      def define
        super
        task :package => [:gem]
        desc "Build the gem file #{gem_file}"
        task :gem => ["#{package_dir}/#{gem_file}"]
        file "#{package_dir}/#{gem_file}" => [package_dir] + @gem_spec.files do
          when_writing("Creating #{gem_spec.full_name}.gem") {
            Gem::Builder.new(gem_spec).build
            verbose(true) {
              mv gem_file, "#{package_dir}/#{gem_file}"
            }
          }
        end
      end