From c2a10102d5a9dd5a60e659c6b02d6cc977492fa6 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jun 24 2019 21:05:30 +0000 Subject: Fix build Signed-off-by: Johnny Hughes --- diff --git a/SPECS/golang-github-cpuguy83-go-md2man.spec b/SPECS/golang-github-cpuguy83-go-md2man.spec index ba45235..58d336b 100644 --- a/SPECS/golang-github-cpuguy83-go-md2man.spec +++ b/SPECS/golang-github-cpuguy83-go-md2man.spec @@ -1,5 +1,5 @@ %global with_bundled 1 -%global with_debug 1 +%global with_debug 0 %if 0%{?with_debug} %global _find_debuginfo_dwz_opts %{nil} @@ -8,12 +8,7 @@ %global debug_package %{nil} %endif -%if 0%{?rhel} > 7 && ! 0%{?fedora} -%define gobuild(o:) \ -scl enable go-toolset-1.10 -- go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; -%else %define gobuild(o:) go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; -%endif # distro %global provider github %global provider_tld com @@ -34,11 +29,8 @@ URL: https://%{import_path} Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required #ExclusiveArch: %%{?go_arches:%%{go_arches}}%%{!?go_arches:%%{ix86} x86_64 %%{arm}} -ExclusiveArch: aarch64 x86_64 ppc64le s390x +ExclusiveArch: aarch64 x86_64 ppc64le s390x %{arm} BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} -%if 0%{?rhel} > 7 -BuildRequires: go-toolset-1.10-golang -%endif # rhel8 BuildRequires: git Provides: %{repo} = %{version}-%{release}