--- /dev/null
+if not File.exists?('/usr/bin/git') then
+ STDERR.puts "\nGit binary not found, aborting. Please install git and run gem build from a checked out copy of the git repository.\n\n"
+ exit
+end
+
+Gem::Specification.new do |s|
+ s.name = 'arvados-cli'
+ s.version = '0.1.pre.' + `/usr/bin/git log --pretty=format:'%ci' -n 1`[0..18].gsub(/[ \-:]/,'')
+ s.date = `/usr/bin/git log --pretty=format:'%ci' -n 1`[0..9]
+ s.summary = "Arvados SDK CLI"
+ s.description = "This is the Arvados SDK CLI gem, git revision " + `/usr/bin/git log --pretty=format:'%H' -n 1`
+ s.authors = ["Arvados Authors"]
+ s.email = 'gem-dev@clinicalfuture.com'
+ #s.bindir = '.'
+ s.licenses = ['Apache License, Version 2.0']
+ s.files = ["bin/arv","bin/wh-run-pipeline-instance"]
+ s.executables << "arv"
+ s.executables << "wh-run-pipeline-instance"
+ s.add_dependency('google-api-client', '>= 0.6.3')
+ s.add_dependency('activesupport', '>= 3.2.13')
+ s.add_dependency('json', '>= 1.7.7')
+ s.add_dependency('trollop', '>= 2.0')
+ s.add_dependency('andand', '>= 1.3.3')
+ s.add_dependency('oj', '>= 2.0.3')
+ s.homepage =
+ 'http://arvados.org'
+end