forked from jruby/jruby-openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jruby-openssl.gemspec
36 lines (27 loc) · 1.44 KB
/
jruby-openssl.gemspec
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
36
#-*- mode: ruby -*-
Gem::Specification.new do |s|
s.name = 'jruby-openssl'
version_rb = File.expand_path('lib/jopenssl/version.rb', File.dirname(__FILE__))
version_rb = File.read(version_rb)
s.version = version_rb.match( /.*\sVERSION\s*=\s*['"](.*)['"]/ )[1]
s.platform = 'java'
s.authors = ['Karol Bucek', 'Ola Bini', 'JRuby contributors']
s.email = '[email protected]'
s.summary = "JRuby OpenSSL"
s.homepage = 'https://github.com/jruby/jruby-openssl'
s.description = 'JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.'
s.licenses = [ 'EPL-1.0', 'GPL-2.0', 'LGPL-2.1' ]
s.require_paths = ['lib']
s.files = `git ls-files`.split("\n").
select { |f| f =~ /^(lib)/ ||
f =~ /^(History|LICENSE|README|Rakefile|Mavenfile|pom.xml)/i } +
Dir.glob('lib/**/*.jar') # 'lib/jopenssl.jar' and potentially BC jars
bc_version = version_rb.match( /.*\sBOUNCY_CASTLE_VERSION\s*=\s*['"](.*)['"]/ )[1]
raise 'BOUNCY_CASTLE_VERSION not matched' if (bc_version || '').empty?
s.required_ruby_version = '>= 1.9.3'
s.required_rubygems_version = '>= 2.4.8'
s.requirements << "jar org.bouncycastle:bcprov-jdk15on, #{bc_version}" # Provider
s.requirements << "jar org.bouncycastle:bcpkix-jdk15on, #{bc_version}" # PKIX/CMS/EAC/PKCSOCSP/TSP/OPENSSL
s.requirements << "jar org.bouncycastle:bctls-jdk15on, #{bc_version}" # DTLS/TLS API/JSSE Provider
end
# vim: syntax=Ruby