update sys and net to support loong64

This commit is contained in:
Wenlong Zhang 2023-06-01 11:38:45 +08:00
parent 5385225488
commit 693aaacc5c
2 changed files with 156579 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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