build: ensure openssl11
This commit is contained in:
parent
35e32acf4a
commit
0b3037a571
|
@ -88,6 +88,12 @@ emqx_test(){
|
||||||
;;
|
;;
|
||||||
"rpm")
|
"rpm")
|
||||||
packagename=$(basename "${PACKAGE_PATH}/${EMQX_NAME}"-*.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}"
|
rpm -ivh "${PACKAGE_PATH}/${packagename}"
|
||||||
if ! rpm -q emqx | grep -q emqx; then
|
if ! rpm -q emqx | grep -q emqx; then
|
||||||
echo "package install error"
|
echo "package install error"
|
||||||
|
|
|
@ -19,6 +19,12 @@ BuildRoot: %{_tmppath}/%{_name}-%{_version}-root
|
||||||
Provides: %{_name}
|
Provides: %{_name}
|
||||||
AutoReq: 0
|
AutoReq: 0
|
||||||
|
|
||||||
|
%if "%{_arch} %{?rhel}" == "amd64 7"
|
||||||
|
Requires: openssl11 libatomic
|
||||||
|
%else
|
||||||
|
Requires: libatomic
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
EMQX, a distributed, massively scalable, highly extensible MQTT message broker written in Erlang/OTP.
|
EMQX, a distributed, massively scalable, highly extensible MQTT message broker written in Erlang/OTP.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue