From 1a6156de4272dfa9260ce3055d0030fea6fa9528 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 23 Jun 2021 15:45:55 -0400 Subject: [PATCH] golang-github-cpuguy83-md2man-2.0.0-8 - Resolves: #1975362 - fix gobuild issues Signed-off-by: Lokesh Mandvekar --- golang-github-cpuguy83-md2man.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/golang-github-cpuguy83-md2man.spec b/golang-github-cpuguy83-md2man.spec index f11612f..092de03 100644 --- a/golang-github-cpuguy83-md2man.spec +++ b/golang-github-cpuguy83-md2man.spec @@ -1,5 +1,10 @@ %bcond_without check +%if ! 0%{?gobuild:1} +%define gobuild(o:) \ +go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**}; +%endif + # https://github.com/cpuguy83/go-md2man %global provider github %global provider_tld com @@ -15,7 +20,7 @@ Converts markdown into roff (man pages).} Name: golang-github-cpuguy83-md2man Version: 2.0.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Converts markdown into roff (man pages) License: MIT URL: https://%{import_path} @@ -49,6 +54,9 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}/ %{_bindir}/* %changelog +* Wed Jun 23 2021 Lokesh Mandvekar - 2.0.0-8 +- Resolves: #1975362 - fix gobuild issues + * Tue Jun 22 2021 Mohan Boddu - 2.0.0-7 - Rebuilt for RHEL 9 BETA for openssl 3.0 Related: rhbz#1971065