55 lines
1.1 KiB
RPMSpec
55 lines
1.1 KiB
RPMSpec
%define debug_package %{nil}
|
|
|
|
Name: promu
|
|
Version: 0.7.0
|
|
Release: 4
|
|
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
|
|
Patch0: add-parameters-to-solve-the-strip.patch
|
|
|
|
#RISC-V support
|
|
Patch100: riscv64-support.patch
|
|
|
|
BuildRequires: golang >= 1.13
|
|
BuildRequires: gcc
|
|
|
|
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
|
|
%patch0 -p1
|
|
%ifarch riscv64
|
|
%patch100 -p1
|
|
%endif
|
|
|
|
%build
|
|
export GOFLAGS="-mod=vendor -buildmode=pie"
|
|
make build
|
|
|
|
%install
|
|
install -D -m 755 %{name}-%{version} %{buildroot}%{_bindir}/promu
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/promu
|
|
|
|
%changelog
|
|
* Wed Jun 14 2023 EastDong <xudong23@iscas.ac.cn> - 0.7.0-4
|
|
- backport to support riscv
|
|
|
|
* Fri Mar 10 2023 caodongxia <caodongxia@h-partners.com> - 0.7.0-3
|
|
- remove linkmode external
|
|
|
|
* Fri Mar 03 2023 wangjunqi <wangjunqi@kylinos.cn> - 0.7.0-2
|
|
- add strip and pie
|
|
|
|
* Wed Dec 16 2020 yangzhao <yangzhao1@kylinos.cn> - 0.7.0-1
|
|
- Init project promu
|