Accepting request 1008349 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1008349 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-promu?expand=0&rev=10
This commit is contained in:
commit
90c0b61d75
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 27 12:37:42 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- switch to go1.17 as upstream does (see https://github.com/prometheus/promu/blob/v0.13.0/.promu.yml)
|
||||
- remove go_nostrip as it isn't necessary with 1.17 anymore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 10 15:22:43 UTC 2022 - Jordi Massaguer <jmassaguerpla@suse.com>
|
||||
|
||||
|
@ -16,13 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?rhel}
|
||||
# Fix ERROR: No build ID note found in
|
||||
%undefine _missing_build_ids_terminate_build
|
||||
%endif
|
||||
|
||||
%{go_nostrip}
|
||||
|
||||
Name: golang-github-prometheus-promu
|
||||
Version: 0.13.0
|
||||
Release: 0
|
||||
@ -34,14 +27,15 @@ Source: promu-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
Patch1: 0001-Set-build-date-from-SOURCE_DATE_EPOCH.patch
|
||||
BuildRequires: golang-packaging
|
||||
%if 0%{?rhel}
|
||||
BuildRequires: golang >= 1.15
|
||||
%else
|
||||
BuildRequires: golang(API) = 1.15
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExcludeArch: s390
|
||||
%{go_provides}
|
||||
%if 0%{?rhel}
|
||||
# Fix ERROR: No build ID note found in
|
||||
%undefine _missing_build_ids_terminate_build
|
||||
BuildRequires: golang >= 1.17
|
||||
%else
|
||||
BuildRequires: golang(API) = 1.17
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Prometheus Utility Tool is used by the Prometheus project to build other components.
|
||||
@ -50,7 +44,7 @@ The Prometheus Utility Tool is used by the Prometheus project to build other com
|
||||
%autosetup -a1 -p1 -n promu-%{version}
|
||||
|
||||
%build
|
||||
%goprep github.com/prometheus/promu
|
||||
%{goprep} github.com/prometheus/promu
|
||||
export VERSION=%{version}
|
||||
export CGO_ENABLED=0
|
||||
go build \
|
||||
@ -61,12 +55,11 @@ go build \
|
||||
|
||||
%install
|
||||
install -D -m 0755 promu "%{buildroot}/%{_bindir}/promu"
|
||||
%gosrc
|
||||
%{gosrc}
|
||||
|
||||
%gofilelist
|
||||
%{gofilelist}
|
||||
|
||||
%files -f file.lst
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/promu
|
||||
|
Loading…
x
Reference in New Issue
Block a user