Dominique Leuenberger 2020-03-08 21:23:04 +00:00 committed by Git OBS Bridge
commit 5da4c791ac
6 changed files with 47 additions and 15 deletions

View File

@ -3,14 +3,18 @@
<param name="url">https://github.com/prometheus/promu.git</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="versionformat">0.2.0</param>
<param name="revision">v0.2.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">v0.5.0</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">promu-*.tar</param>
<param name="compression">xz</param>
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">promu</param>
</service>
<service name="go_modules" mode="disabled">
<param name="archive">promu-0.5.0.tar.gz</param>
</service>
</services>

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Fri Feb 7 17:13:26 UTC 2020 - Witek Bedyk <witold.bedyk@suse.com>
- Update to 0.5.0
+ Features:
* Add support for aix/ppc64. #151
* Fallback to git describe output if no VERSION. #130
* Make extldflags extensible by configuration. #125
+ Enhancements:
* cmd/release: add --timeout option. #142
* cmd/release: create release in GitHub if none exists. #148
* Avoid bind-mounting to allow building with a remote docker engine #95
+ Bug Fixes:
* cmd/tarball: restore --prefix flag. #133
* cmd/release: don't leak credentials in case of error. #136
- Use obs-service-go_modules
-------------------------------------------------------------------
Fri Feb 8 11:05:48 UTC 2019 - Jan Fajerski <jan.fajerski@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package golang-github-prometheus-promu
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,16 +19,16 @@
%{go_nostrip}
Name: golang-github-prometheus-promu
Version: 0.2.0
Version: 0.5.0
Release: 0
Summary: Prometheus Utility Tool
License: Apache-2.0
Group: System/Management
Url: https://github.com/prometheus/promu
Source: promu-%{version}.tar.xz
BuildRequires: go1.11
URL: https://github.com/prometheus/promu
Source: promu-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.11
BuildRequires: golang-packaging
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{go_provides}
@ -37,13 +37,20 @@ The Prometheus Utility Tool is used by the Prometheus project to build other com
%prep
%setup -q -n promu-%{version}
%setup -q -T -D -a 1 -n promu-%{version}
%build
%goprep github.com/prometheus/promu
%gobuild
export VERSION=%{version}
export CGO_ENABLED=0
go build \
-mod=vendor \
-buildmode=pie \
-ldflags "-s -w -X main.version=$VERSION" \
-o promu ;
%install
%goinstall
install -D -m 0755 promu "%{buildroot}/%{_bindir}/promu"
%gosrc
%gofilelist

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffb06771bf63610296b557f6879b8e4e8a2086bc96133353e657b9d1edf2e9b0
size 451812

3
promu-0.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0721abc6fb17e1f2fb362f3111b55557c9c9d81711d086b28c661e854e061582
size 4834254

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bcc6bf112558a4910043eaba18c284860707ab98092f0c294add5e136aba507e
size 610746