add loong64 support

(cherry picked from commit 61b489b06bfad0a0554698086efc3ae383299109)
This commit is contained in:
zhangxianting 2024-07-02 14:39:06 +08:00 committed by openeuler-sync-bot
parent 24a943df54
commit 65bb88ab3f
2 changed files with 2642 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
Name: pushgateway Name: pushgateway
Version: 1.4.1 Version: 1.4.1
Release: 5 Release: 6
Summary: Prometheus pushgateway. Summary: Prometheus pushgateway.
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/prometheus/%{name} URL: https://github.com/prometheus/%{name}
@ -18,6 +18,7 @@ Source2: %{name}.default
Source3: vendor.tar.gz Source3: vendor.tar.gz
Patch0: 0001-fix-promu-dependence-and-fix-not-found-web.patch Patch0: 0001-fix-promu-dependence-and-fix-not-found-web.patch
Patch1: 0001-Log-shutdown-gracefully-428.patch Patch1: 0001-Log-shutdown-gracefully-428.patch
Patch2: 0001-add-loong64-support.patch
BuildRequires: golang >= 1.13 BuildRequires: golang >= 1.13
BuildRequires: promu BuildRequires: promu
@ -31,8 +32,11 @@ Since these kinds of jobs may not exist long enough to be scraped, they can inst
The Pushgateway then exposes these metrics to Prometheus. The Pushgateway then exposes these metrics to Prometheus.
%prep %prep
%autosetup -p1 -n %{name}-%{version} %setup -n %{name}-%{version}
%setup -T -D -a 3 -n %{name}-%{version} %setup -T -D -a 3 -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build %build
mkdir -p $(pwd)/bin mkdir -p $(pwd)/bin
@ -70,6 +74,9 @@ exit 0
%dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus %dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus
%changelog %changelog
* Tue Jul 02 2024 zhangxianting <zhangxianting@uniontech.com> - 1.4.1-6
- add loong64 support
* Thu Feb 09 2023 xu_ping <xuping33@h-partners.com> - 1.4.1-5 * Thu Feb 09 2023 xu_ping <xuping33@h-partners.com> - 1.4.1-5
- set flags for BIND_NOW - set flags for BIND_NOW