vernemq: do fully offline build

Change-Id: I6af186e289fbb6ca9d8133b0098c3d24e51f0c77
Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/24527
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <alexey.makhalov@broadcom.com>
Reviewed-by: Vamsi Krishna Brahmajosyula <vamsi-krishna.brahmajosyula@broadcom.com>
This commit is contained in:
Shreenidhi Shedi 2024-09-04 16:56:08 +05:30 committed by Vamsi Krishna Brahmajosyula
parent 02c2ca8411
commit c70600ac31
1 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: VerneMQ is a high-performance, distributed MQTT message broker
Name: vernemq
Version: 2.0.1
Release: 1%{?dist}
Release: 2%{?dist}
License: Apache License, Version 2.0
URL: https://github.com/vernemq/vernemq
Group: Applications/System
@ -29,6 +29,9 @@ Source0: https://github.com/%{name}/%{name}/archive/%{name}-%{version}.tar.gz
# Ensure that no sources are fetched from web during build
# If anything is fetched from web, it must be fixed
#
# Clear all built files
# find . \( -name "*.so" -or -name "*.so.*" -or -name "*.o" -or -name "*.a" -or -name "*.beam" \) -delete
#
# Once all done, create vendor tarball
#
# XZ_OPT=-9 tar cJf vernemq_vendor-version>.tar.xz
@ -76,8 +79,12 @@ mv ../%{name}_vendor-%{version}/plugins _build/default/
cp %{SOURCE2} ./vars.config
find . \( -name "*.so" -or -name "*.so.*" -or -name "*.o" -or -name "*.a" -or -name "*.beam" \) -delete
cp -a _build/default/plugins/* _checkouts/
# make doesn't support _smp_mflags
make rel
REBAR_OFFLINE=1 make rel
%install
install -vdm 0755 %{buildroot}%{_sharedstatedir}/%{name}/broker
@ -163,6 +170,8 @@ rm -rf %{buildroot}
%{_sysusersdir}/%{name}.sysusers
%changelog
* Wed Sep 04 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.0.1-2
- Do fully offline build
* Fri Jun 14 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.0.1-1
- Upgrade to v2.0.1
- Avoid repackaging erlng binaries, use system provided erlang