From c4c28c6c823d2c00ed5f4960acceb426ea1531ed Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 19 Oct 2016 20:10:11 -0400 Subject: [PATCH] spec: Improve the rpm package This still needs a lot of work by a packaging specialist. --- spec.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec.in b/spec.in index a24a4f27..3d7a413e 100644 --- a/spec.in +++ b/spec.in @@ -12,11 +12,14 @@ Source0: https://dl.fedoraproject.org/pub/alt/purpleidea/__PROGRAM__/SOURCES/__P # graphviz should really be a "suggests", since technically it's optional Requires: graphviz -BuildRequires: golang +# If go_compiler is not set to 1, there is no virtual provide. Use golang instead. +BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} BuildRequires: golang-googlecode-tools-stringer BuildRequires: git-core BuildRequires: mercurial +ExclusiveArch: %{go_arches} + %description A next generation config management prototype!