diff --git a/golang-github-cpuguy83-md2man.spec b/golang-github-cpuguy83-md2man.spec index bcf91d0..d134583 100644 --- a/golang-github-cpuguy83-md2man.spec +++ b/golang-github-cpuguy83-md2man.spec @@ -20,7 +20,7 @@ Converts markdown into roff (man pages).} Name: golang-github-cpuguy83-md2man Version: 2.0.0 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Converts markdown into roff (man pages) License: MIT URL: https://%{import_path} @@ -42,6 +42,9 @@ mkdir -p src/%{provider}.%{provider_tld}/%{project} ln -s $(pwd) src/%{import_path} export GOPATH=$(pwd) export CGO_CFLAGS="%{optflags} -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" +%ifarch x86_64 +export CGO_CFLAGS+=" -fcf-protection" +%endif GOPATH=$GOPATH %gobuild -o bin/go-md2man %{import_path} %install @@ -58,6 +61,9 @@ install -m 0755 -vp bin/* %{buildroot}%{_bindir}/ %{_bindir}/* %changelog +* Fri Jul 09 2021 Lokesh Mandvekar - 2.0.0-12 +- Resolves: #1975362 - add -fcf-protection to CGO_CFLAGS + * Thu Jul 08 2021 Lokesh Mandvekar - 2.0.0-11 - Resolves: #1975362 - add gating.yaml