!15 update sys and net to support loong64
From: @zhangwenlong01 Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
659016a567
156571
0001-update-sys-and-net-to-support-loong64.patch
Normal file
156571
0001-update-sys-and-net-to-support-loong64.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: alertmanager
|
Name: alertmanager
|
||||||
Version: 0.21.0
|
Version: 0.21.0
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Prometheus Alertmanager.
|
Summary: Prometheus Alertmanager.
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/prometheus/%{name}
|
URL: https://github.com/prometheus/%{name}
|
||||||
@ -11,6 +11,7 @@ Source0: https://github.com/prometheus/%{name}/archive/refs/tags/v%{version}.tar
|
|||||||
Source1: %{name}.service
|
Source1: %{name}.service
|
||||||
Source2: %{name}.default
|
Source2: %{name}.default
|
||||||
Source3: %{name}.yml
|
Source3: %{name}.yml
|
||||||
|
Patch0: 0001-update-sys-and-net-to-support-loong64.patch
|
||||||
|
|
||||||
BuildRequires: golang
|
BuildRequires: golang
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
@ -26,6 +27,9 @@ takes care of silencing and inhibition of alerts.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
%ifarch loongarch64
|
||||||
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GOFLAGS="-mod=vendor -buildmode=pie"
|
export GOFLAGS="-mod=vendor -buildmode=pie"
|
||||||
@ -66,6 +70,9 @@ exit 0
|
|||||||
%dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus
|
%dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 31 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 0.21.0-7
|
||||||
|
- update sys and net to support loong64
|
||||||
|
|
||||||
* Tue Mar 07 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.21.0-6
|
* Tue Mar 07 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.21.0-6
|
||||||
- Add strip and pie
|
- Add strip and pie
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user