From 64907207aa205893945c5f25978d247085b1b680 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Aug 24 2015 10:42:56 +0000 Subject: Update ifarch for secondary architectures - resolves: #1250493 --- diff --git a/golang-github-mesos-mesos-go.spec b/golang-github-mesos-mesos-go.spec index f2f8f02..1aa1b10 100644 --- a/golang-github-mesos-mesos-go.spec +++ b/golang-github-mesos-mesos-go.spec @@ -25,6 +25,13 @@ %doc %{*} \ %endif +%global isgccgoarch 0 +%if 0%{?gccgo_arches:1} +%ifarch %{gccgo_arches} +%global isgccgoarch 1 +%endif +%endif + %global provider github %global provider_tld com %global project mesos @@ -37,7 +44,7 @@ Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.1.git%{shortcommit}%{?dist} +Release: 0.2.git%{shortcommit}%{?dist} Summary: Go language bindings for Apache Mesos License: ASL 2.0 URL: https://%{provider_prefix} @@ -50,7 +57,7 @@ ExclusiveArch: %{go_arches} ExclusiveArch: %{ix86} x86_64 %{arm} %endif # If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} +%if %{isgccgoarch} BuildRequires: gcc-go >= %{gccgo_min_vers} %else BuildRequires: golang @@ -121,7 +128,7 @@ ExclusiveArch: %{go_arches} ExclusiveArch: %{ix86} x86_64 %{arm} %endif # If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} +%if %{isgccgoarch} BuildRequires: gcc-go >= %{gccgo_min_vers} %else BuildRequires: golang @@ -178,7 +185,7 @@ done %check %if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel} -%ifarch 0%{?gccgo_arches} +%if %{isgccgoarch} function gotest { %{gcc_go_test} "$@"; } %else %if 0%{?golang_test:1} @@ -216,6 +223,10 @@ gotest %{import_path}/upid %endif %changelog +* Mon Aug 24 2015 jchaloup - 0-0.2.git83b52d7 +- Update ifarch for secondary architectures + resolves: #1250493 + * Tue Jul 28 2015 jchaloup - 0-0.1.git83b52d7 - First package for Fedora resolves: #1246740