Componentize podspec version

This commit is contained in:
Davide De Rosa 2018-09-26 11:09:00 +02:00
parent b5794412da
commit 74513643eb
1 changed files with 6 additions and 3 deletions

View File

@ -1,15 +1,18 @@
Pod::Spec.new do |s|
openssl_version = "%OPENSSL-VERSION%"
script_version = "v2"
s.name = "OpenSSL-Apple"
s.version = "%OPENSSL-VERSION%"
s.version = "#{openssl_version}-#{script_version}"
s.summary = "A script for compiling OpenSSL for Apple Devices"
s.authors = "Felix Schulze", "Davide De Rosa"
s.homepage = "https://github.com/keeshux/openssl-apple.git"
s.source = { :git => s.homepage.to_s, :tag => "v2" }
s.source = { :git => s.homepage.to_s, :tag => script_version }
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.prepare_command = <<-CMD
./build-libssl.sh --version=#{s.version}
./build-libssl.sh --version=#{openssl_version}
./create-openssl-framework.sh dynamic
CMD