Merge pull request #6239 from zmstone/build-ensure-openssl11
build: ensure openssl11
This commit is contained in:
commit
efcdcc555f
|
@ -88,6 +88,12 @@ emqx_test(){
|
|||
;;
|
||||
"rpm")
|
||||
packagename=$(basename "${PACKAGE_PATH}/${EMQX_NAME}"-*.rpm)
|
||||
|
||||
if [[ "${ARCH}" == "amd64" && $(rpm -E '%{rhel}') == 7 ]] ; then
|
||||
# EMQX OTP requires openssl11 to have TLS1.3 support
|
||||
yum install -y openssl11
|
||||
fi
|
||||
|
||||
rpm -ivh "${PACKAGE_PATH}/${packagename}"
|
||||
if ! rpm -q emqx | grep -q emqx; then
|
||||
echo "package install error"
|
||||
|
|
|
@ -19,6 +19,12 @@ BuildRoot: %{_tmppath}/%{_name}-%{_version}-root
|
|||
Provides: %{_name}
|
||||
AutoReq: 0
|
||||
|
||||
%if "%{_arch} %{?rhel}" == "amd64 7"
|
||||
Requires: openssl11 libatomic
|
||||
%else
|
||||
Requires: libatomic
|
||||
%endif
|
||||
|
||||
%description
|
||||
EMQX, a distributed, massively scalable, highly extensible MQTT message broker written in Erlang/OTP.
|
||||
|
||||
|
|
Loading…
Reference in New Issue