-
Notifications
You must be signed in to change notification settings - Fork 80
/
jruby-openssl.gemspec
37 lines (27 loc) · 1.48 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
37
#-*- 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 = 'self+jruby-openssl@kares.org'
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 = '>= 2.5.0' # JRuby >= 9.2
s.requirements << "jar org.bouncycastle:bcprov-jdk18on, #{bc_version}" # Provider
s.requirements << "jar org.bouncycastle:bcpkix-jdk18on, #{bc_version}" # PKIX/CMS/EAC/PKCSOCSP/TSP/OPENSSL
s.requirements << "jar org.bouncycastle:bctls-jdk18on, #{bc_version}" # DTLS/TLS API/JSSE Provider
s.requirements << "jar org.bouncycastle:bcutil-jdk18on, #{bc_version}"
end
# vim: syntax=Ruby