promu/promu.spec

44 lines
898 B
RPMSpec
Raw Normal View History

2020-12-16 17:09:05 +08:00
%define debug_package %{nil}
Name: promu
Version: 0.7.0
Release: 2
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
Patch0: add-parameters-to-solve-the-strip.patch
2020-12-16 17:09:05 +08:00
BuildRequires: golang >= 1.13
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
%patch0 -p1
2020-12-16 17:09:05 +08:00
%build
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
* 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