2020-12-16 17:09:05 +08:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: promu
|
|
|
|
|
Version: 0.7.0
|
2023-06-14 19:53:14 +08:00
|
|
|
Release: 4
|
2020-12-16 17:09:05 +08:00
|
|
|
Summary: Prometheus Utility Tool
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/prometheus/promu
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/prometheus/promu/archive/v%{version}.tar.gz
|
2023-03-03 18:06:25 +08:00
|
|
|
Patch0: add-parameters-to-solve-the-strip.patch
|
|
|
|
|
|
2023-06-14 19:53:14 +08:00
|
|
|
#RISC-V support
|
|
|
|
|
Patch100: riscv64-support.patch
|
2020-12-16 17:09:05 +08:00
|
|
|
|
|
|
|
|
BuildRequires: golang >= 1.13
|
2023-03-03 18:06:25 +08:00
|
|
|
BuildRequires: gcc
|
2020-12-16 17:09:05 +08:00
|
|
|
|
|
|
|
|
Conflicts: promu
|
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
promu is the utility tool for building and releasing Prometheus projects
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -T -n %{name}-%{version} -b 0
|
2023-03-03 18:06:25 +08:00
|
|
|
%patch0 -p1
|
2023-06-14 19:53:14 +08:00
|
|
|
%ifarch riscv64
|
|
|
|
|
%patch100 -p1
|
|
|
|
|
%endif
|
2020-12-16 17:09:05 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-03-03 18:06:25 +08:00
|
|
|
export GOFLAGS="-mod=vendor -buildmode=pie"
|
|
|
|
|
make build
|
2020-12-16 17:09:05 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -D -m 755 %{name}-%{version} %{buildroot}%{_bindir}/promu
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_bindir}/promu
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-14 19:53:14 +08:00
|
|
|
* Wed Jun 14 2023 EastDong <xudong23@iscas.ac.cn> - 0.7.0-4
|
|
|
|
|
- backport to support riscv
|
|
|
|
|
|
2023-03-10 14:00:17 +08:00
|
|
|
* Fri Mar 10 2023 caodongxia <caodongxia@h-partners.com> - 0.7.0-3
|
|
|
|
|
- remove linkmode external
|
|
|
|
|
|
2023-03-03 18:06:25 +08:00
|
|
|
* Fri Mar 03 2023 wangjunqi <wangjunqi@kylinos.cn> - 0.7.0-2
|
|
|
|
|
- add strip and pie
|
|
|
|
|
|
2022-06-08 06:40:05 +00:00
|
|
|
* Wed Dec 16 2020 yangzhao <yangzhao1@kylinos.cn> - 0.7.0-1
|
2020-12-16 17:09:05 +08:00
|
|
|
- Init project promu
|