On Sun, Jan 15, 2017 at 1:56 PM arnaud gaboury <arnaud.gaboury@gmail.com> wrote:
I wrote a spec file to build a .rpm for an application working only on 64 bits machines. The package builds fine and is in this form:
myapp-version.fc25.x86_64.rpm

Now, $ fedpkg --dist f25 lint complains:
E: no-binary

Googling I found the package should be of the noarch architecture. Adding BuildArch: noarch right below Source in my .spec file leaves me with:
myapp-version.fc25.noarch.rpm and  fedpkg lint doesn't complain anymore.

My question: is this the correct way to build my .rpm, using the noarch in the spec file? Or shall I keep myapp-version.fc25.x86_64.rpm and ignore the ling Error?

EDIT : reading more on the Arch topic, I must add my application is built with go. Rfering to Go packaging binaries[0], it seems I must use:
BuildArch: noarch
ExclusiveArch: %{go_arches} noarch

Is this correct?
 

Thank you for help