On 2015-07-09, Jan Chaloupka <jchaloup@xxxxxxxxxx> wrote: > # Define arches for PA and SA > %golang_arches %{ix86} x86_64 %{arm} [...] > Recommended use in spec file: > 1) To choose the correct compiler: > %ifarch %{golang_arches} > BuildRequires: golang > %else > BuildRequires: gcc-go >= %{gccgo_min_vers} > %endif > This will not work. A source package is built on random architecture, thus using %ifarch to define BuildRequire will provide random results. (And maybe while building a source package, the RPM architecture is redefined to `noarch' value.) -- Petr -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct