!63 add loong64 support for grafana
From: @zhangwenlong01 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
28262c9b15
13
grafana.spec
13
grafana.spec
@ -7,7 +7,7 @@
|
||||
|
||||
Name: grafana
|
||||
Version: 7.5.15
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Metrics dashboard and graph editor
|
||||
License: Apache 2.0
|
||||
URL: https://grafana.org
|
||||
@ -27,6 +27,10 @@ Source5: build_frontend.sh
|
||||
Source6: list_bundled_nodejs_packages.py
|
||||
# Source7 contains the script to create the vendor and webpack bundles in a container
|
||||
Source7: create_bundles_in_container.sh
|
||||
%ifarch loongarch64
|
||||
#Source8 from https://github.com/golang/sys version: v0.4.0
|
||||
Source8: sys.tar.gz
|
||||
%endif
|
||||
|
||||
# Patches
|
||||
Patch1: 001-wrappers-grafana-cli.patch
|
||||
@ -428,6 +432,10 @@ rm -r plugins-bundled
|
||||
|
||||
# Set up build subdirs and links
|
||||
mkdir -p %{_builddir}/src/github.com/grafana
|
||||
%ifarch loongarch64
|
||||
rm -rf vendor/golang.org/x/sys
|
||||
tar -xf %{SOURCE8} -C vendor/golang.org/x/
|
||||
%endif
|
||||
ln -s %{_builddir}/%{name}-%{version} \
|
||||
%{_builddir}/src/github.com/grafana/grafana
|
||||
|
||||
@ -588,6 +596,9 @@ rm -r pkg/macaron
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jul 13 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 7.5.15-5
|
||||
- add loong64 support for grafana
|
||||
|
||||
* Thu Apr 13 2023 wangkai <13474090681@163.com> - 7.5.15-4
|
||||
- Fix gtime_test
|
||||
|
||||
|
||||
BIN
sys.tar.gz
Normal file
BIN
sys.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user