update sys and net to support loong64
This commit is contained in:
parent
5385225488
commit
693aaacc5c
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
|
||||
Version: 0.21.0
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: Prometheus Alertmanager.
|
||||
License: ASL 2.0
|
||||
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
|
||||
Source2: %{name}.default
|
||||
Source3: %{name}.yml
|
||||
Patch0: 0001-update-sys-and-net-to-support-loong64.patch
|
||||
|
||||
BuildRequires: golang
|
||||
BuildRequires: systemd
|
||||
@ -26,6 +27,9 @@ takes care of silencing and inhibition of alerts.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%ifarch loongarch64
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
export GOFLAGS="-mod=vendor -buildmode=pie"
|
||||
@ -66,6 +70,9 @@ exit 0
|
||||
%dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus
|
||||
|
||||
%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
|
||||
- Add strip and pie
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user