File: Rakefile

package info (click to toggle)
gem2deb 2.2.6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,228 kB
  • sloc: ruby: 5,562; sh: 140; perl: 46; ansic: 33; makefile: 31
file content (35 lines) | stat: -rw-r--r-- 986 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'rubygems/package_task'

spec = Gem::Specification.new do |s|
  s.platform = Gem::Platform::RUBY
  s.summary = "Simple native extension used to test dh_ruby"
  s.name = 'simpleextension'
  s.version = '1.2.3'
  s.requirements << 'none'
  s.require_path = 'ext'
  s.author = 'Debian Ruby Team'
  s.email = 'pkg-ruby-extras-maintainers@lists.alioth.debian.org'
  s.homepage = 'https://wiki.debian.org/Teams/Ruby'
  s.license = 'GPL-3+'
  s.extensions << 'ext/simpleextension/extconf.rb'
  #s.autorequire = 'rake'
  s.files = Dir.glob('{bin,ext}/**/*')
  s.description = <<EOF
simpleextension is a simple native extension that is used to test dh_ruby.
EOF
  s.test_files = ['test/test_simpleextension.rb']
end

Gem::PackageTask.new(spec) do |pkg|
  pkg.need_zip = false
  pkg.need_tar = false
end

desc 'build gemspec'
task :spec => 'simpleextension.gemspec'

file 'simpleextension.gemspec' do
  File.open('simpleextension.gemspec', 'w') do |f|
    f.write(spec.to_ruby)
  end
end