golang-github-cpuguy83-md2man-2.0.0-12

- Resolves: #1975362 - add -fcf-protection to CGO_CFLAGS

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2021-07-09 09:17:45 -04:00
parent 1f5e44dad0
commit 80355ee876

View File

@ -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 <lsm5@fedoraproject.org> - 2.0.0-12
- Resolves: #1975362 - add -fcf-protection to CGO_CFLAGS
* Thu Jul 08 2021 Lokesh Mandvekar <lsm5@fedoraproject.org> - 2.0.0-11
- Resolves: #1975362 - add gating.yaml