Change-Id: Id0620173da823ace8d578e4dbc1044c77252ef3a
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/21900
Tested-by: gerrit-photon <photon-checkins@vmware.com>
| ... | ... |
@@ -11,7 +11,7 @@ |
| 11 | 11 |
Summary: A sidecar process for managing HAProxy. |
| 12 | 12 |
Name: haproxy-%{repo}
|
| 13 | 13 |
Version: 2.7.1 |
| 14 |
-Release: 7%{?dist}
|
|
| 14 |
+Release: 8%{?dist}
|
|
| 15 | 15 |
License: Apache License 2.0 |
| 16 | 16 |
URL: https://github.com/haproxytech/%{repo}
|
| 17 | 17 |
Group: Applications/System |
| ... | ... |
@@ -41,7 +41,7 @@ and provides API endpoints for managing HAProxy. |
| 41 | 41 |
# - the work-around https://github.com/aws/amazon-ssm-agent/issues/268 |
| 42 | 42 |
%define build_id %(head -c20 /dev/urandom|od -An -tx1|tr -d '[:space:]') |
| 43 | 43 |
%define ldflags_for_build_id -s -w -B 0x%{build_id} -extldflags=-Wl,-z,now,-z,relro,-z,defs
|
| 44 |
-%define ldflags_for_build_metadata -X main.GitRepo=%{Source0} -X main.GitTag=v%{version} -X main.GitCommit=%{commit} -X main.GitDirty= -X main.BuildTime=%{build_date}
|
|
| 44 |
+%define ldflags_for_build_metadata -X main.GitRepo=%{SOURCE0} -X main.GitTag=v%{version} -X main.GitCommit=%{commit} -X main.GitDirty= -X main.BuildTime=%{build_date}
|
|
| 45 | 45 |
%define ldflags %{ldflags_for_build_id} %{ldflags_for_build_metadata}
|
| 46 | 46 |
export CGO_ENABLED=0 |
| 47 | 47 |
go build -gcflags "%{gcflags}" -ldflags "%{ldflags}" -o %{cmd} ./cmd/%{cmd}/
|
| ... | ... |
@@ -57,6 +57,8 @@ rm -rf %{buildroot}/*
|
| 57 | 57 |
%{_libexecdir}/haproxy/%{cmd}
|
| 58 | 58 |
|
| 59 | 59 |
%changelog |
| 60 |
+* Thu Sep 14 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.7.1-8 |
|
| 61 |
+- Fix a source0 mishap while building |
|
| 60 | 62 |
* Mon Aug 21 2023 Nitesh Kumar <kunitesh@vmware.com> 2.7.1-7 |
| 61 | 63 |
- Version bump up to use haproxy v2.7.10 |
| 62 | 64 |
* Mon Jul 17 2023 Piyush Gupta <gpiyush@vmware.com> 2.7.1-6 |