add loong64 support for grafana

This commit is contained in:
Wenlong Zhang 2023-07-13 16:17:41 +08:00
parent 36432458a9
commit 89b378f1e4
2 changed files with 12 additions and 1 deletions

View File

@ -7,7 +7,7 @@
Name: grafana Name: grafana
Version: 7.5.15 Version: 7.5.15
Release: 4 Release: 5
Summary: Metrics dashboard and graph editor Summary: Metrics dashboard and graph editor
License: Apache 2.0 License: Apache 2.0
URL: https://grafana.org URL: https://grafana.org
@ -27,6 +27,10 @@ Source5: build_frontend.sh
Source6: list_bundled_nodejs_packages.py Source6: list_bundled_nodejs_packages.py
# Source7 contains the script to create the vendor and webpack bundles in a container # Source7 contains the script to create the vendor and webpack bundles in a container
Source7: create_bundles_in_container.sh 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 # Patches
Patch1: 001-wrappers-grafana-cli.patch Patch1: 001-wrappers-grafana-cli.patch
@ -428,6 +432,10 @@ rm -r plugins-bundled
# Set up build subdirs and links # Set up build subdirs and links
mkdir -p %{_builddir}/src/github.com/grafana 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} \ ln -s %{_builddir}/%{name}-%{version} \
%{_builddir}/src/github.com/grafana/grafana %{_builddir}/src/github.com/grafana/grafana
@ -588,6 +596,9 @@ rm -r pkg/macaron
%changelog %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 * Thu Apr 13 2023 wangkai <13474090681@163.com> - 7.5.15-4
- Fix gtime_test - Fix gtime_test

BIN
sys.tar.gz Normal file

Binary file not shown.