Merge branch 'gem'
This commit is contained in:
commit
d99e55c9eb
|
@ -0,0 +1 @@
|
|||
pkg
|
|
@ -0,0 +1,47 @@
|
|||
require 'rubygems'
|
||||
require 'rake/gempackagetask'
|
||||
require 'rubygems/specification'
|
||||
require 'date'
|
||||
require 'spec/rake/spectask'
|
||||
|
||||
props = {}
|
||||
File.open("bindings/java/version.properties").each { |line|
|
||||
next if line =~ /^#/
|
||||
line.chomp!
|
||||
line.strip!
|
||||
next if line.empty?
|
||||
key,val = line.split('=')
|
||||
props[key] = val
|
||||
}
|
||||
|
||||
GEM = props['project.name']
|
||||
|
||||
spec = Gem::Specification.new do |s|
|
||||
s.name = GEM
|
||||
s.version = props['version.major'] + '.' + props['version.minor'] + '.' + props['version.maint']
|
||||
s.summary = props['project.summary']
|
||||
s.description = s.summary
|
||||
s.author = props['project.author']
|
||||
s.email = props['project.email']
|
||||
s.homepage = props['project.homepage']
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.has_rdoc = false
|
||||
s.extensions = 'bindings/ruby/extconf.rb'
|
||||
s.files =
|
||||
%w(COPYING EXCEPTIONS README Rakefile) +
|
||||
%w(bindings/SigarWrapper.pm) +
|
||||
Dir.glob("bindings/ruby/**/*") +
|
||||
Dir.glob("bindings/java/version.properties") +
|
||||
Dir.glob("include/*.h") +
|
||||
Dir.glob("src/**/*.[ch]")
|
||||
end
|
||||
|
||||
Rake::GemPackageTask.new(spec) do |pkg|
|
||||
pkg.gem_spec = spec
|
||||
end
|
||||
|
||||
task :make_spec do
|
||||
File.open("#{GEM}.gemspec", "w") do |file|
|
||||
file.puts spec.to_ruby
|
||||
end
|
||||
end
|
|
@ -3,4 +3,9 @@ version.major=1
|
|||
version.minor=7
|
||||
version.maint=0
|
||||
version.build=0
|
||||
project.name=sigar
|
||||
project.author=Doug MacEachern
|
||||
project.email=sigar-users@hyperic.org
|
||||
project.homepage=http://sigar.hyperic.com/
|
||||
project.summary=System Information Gatherer And Reporter
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{sigar}
|
||||
s.version = "1.7.0"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["Doug MacEachern"]
|
||||
s.date = %q{2009-02-16}
|
||||
s.description = %q{System Information Gatherer And Reporter}
|
||||
s.email = %q{sigar-users@hyperic.org}
|
||||
s.extensions = ["bindings/ruby/extconf.rb"]
|
||||
s.files = ["COPYING", "EXCEPTIONS", "README", "Rakefile", "bindings/SigarWrapper.pm", "bindings/ruby/extconf.rb", "bindings/ruby/examples", "bindings/ruby/examples/penv.rb", "bindings/ruby/examples/who.rb", "bindings/ruby/examples/df.rb", "bindings/ruby/examples/cpu_info.rb", "bindings/ruby/examples/free.rb", "bindings/ruby/examples/netstat.rb", "bindings/ruby/examples/pargs.rb", "bindings/ruby/examples/ifconfig.rb", "bindings/ruby/rbsigar.c", "bindings/java/version.properties", "include/sigar.h", "include/sigar_private.h", "include/sigar_log.h", "include/sigar_fileinfo.h", "include/sigar_util.h", "include/sigar_getline.h", "include/sigar_ptql.h", "include/sigar_format.h", "src/sigar_getline.c", "src/sigar_fileinfo.c", "src/sigar_signal.c", "src/sigar_format.c", "src/sigar_util.c", "src/sigar.c", "src/sigar_cache.c", "src/os/darwin/sigar_os.h", "src/os/darwin/darwin_sigar.c", "src/os/stub/stub_sigar.c", "src/os/stub/sigar_os.h", "src/os/hpux/dlpi.c", "src/os/hpux/hpux_sigar.c", "src/os/hpux/sigar_os.h", "src/os/solaris/get_mib2.h", "src/os/solaris/procfs.c", "src/os/solaris/sigar_os.h", "src/os/solaris/solaris_sigar.c", "src/os/solaris/hmekstat.h", "src/os/solaris/get_mib2.c", "src/os/solaris/kstats.c", "src/os/aix/aix_sigar.c", "src/os/aix/sigar_os.h", "src/os/win32/msvc_iptypes.h", "src/os/win32/peb.c", "src/os/win32/sigar_os.h", "src/os/win32/win32_sigar.c", "src/os/win32/sigar_pdh.h", "src/os/netware/sigar_os.h", "src/os/netware/netware_sigar.c", "src/os/osf1/sigar_os.h", "src/os/osf1/osf1_sigar.c", "src/os/linux/linux_sigar.c", "src/os/linux/sigar_os.h", "src/sigar_ptql.c"]
|
||||
s.homepage = %q{http://sigar.hyperic.com/}
|
||||
s.require_paths = ["lib"]
|
||||
s.rubygems_version = %q{1.3.1}
|
||||
s.summary = %q{System Information Gatherer And Reporter}
|
||||
|
||||
if s.respond_to? :specification_version then
|
||||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
||||
s.specification_version = 2
|
||||
|
||||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
||||
else
|
||||
end
|
||||
else
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue